<?php /* Smarty version Smarty-3.1.11, created on 2025-02-20 00:07:06
         compiled from "../views/default/menuurlview/edit.html" */ ?>
<?php /*%%SmartyHeaderCode:280323870678d197a84fe41-90584477%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fef8e794bd2231702f9e18b3e3ddd762da83e7b8' => 
    array (
      0 => '../views/default/menuurlview/edit.html',
      1 => 1740000151,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '280323870678d197a84fe41-90584477',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_678d197a96f2b7_51086473',
  'variables' => 
  array (
    'loadData' => 0,
    'alloldusergroup' => 0,
    'myalloldusergroup' => 0,
    'allusergroup' => 0,
    'myallusergroup' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_678d197a96f2b7_51086473')) {function content_678d197a96f2b7_51086473($_smarty_tpl) {?>

<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">الروابط</a></li>
            <li><a href="menuurController.php?do=show">الخزن</a></li>
            <li class="active">اضافة رابط</li>
        </ol>


        <div class="panel panel-default panel-m">
            <div class="panel-heading">
                <h3 class="panel-title">اضافة رابط</h3>
            </div>
            <div class="panel-body">


                
                <form class="nameToBeChecked form-horizontal" enctype="multipart/form-data" role="form" action="menuurController.php?do=update" method="post" >

                    




                    <div class="form-group">
                        <label for="savename" class="col-lg-2 control-label">اسم الرابط</label>
                        <div class="col-lg-4">

                            <span id="name">

                                <input type="text" name="urltitle" id="urltitle"  value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->urltitle;?>
"  placeholder="اسم الرابط" class="form-control" />

                                <span class="textfieldRequiredMsg">*</span></span>





                        </div>
                    </div>

                    <!-- =================================================   -->




                    <div class="form-group">
                        <label for="savename" class="col-lg-2 control-label">الرابط</label>
                        <div class="col-lg-4"><span id="sprytextfield2">
                                <input type="text" name="menuurl" id="menuurl"  value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->menuurl;?>
"  placeholder="الرابط" class="form-control" />
                                <span class="textfieldRequiredMsg">ادخل الرابط.</span></span></div>
                    </div>

                    <!-- =================================================   -->




                    <div class="form-group">
                        <label for="savename" class="col-lg-2 control-label">الصوره</label>
                        <div class="col-lg-4">
                            <img src="../views/default/images/upload/images150_150/<?php echo $_smarty_tpl->tpl_vars['loadData']->value->urlimage;?>
"  width="60" height="60"/>
                            <input type="file" name="urlimage" id="urlimage"    placeholder="الصوره" class="form-control" />

                            <input name="oldimage" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->urlimage;?>
" />
                            <input name="menuurlid" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['loadData']->value->menuurlid;?>
" />
                        </div>
                    </div>

                    <!-- =================================================   -->



                    <div class="form-group">
                        <label class="col-lg-2 control-label">المستخدمين</label>
                        <div class="col-lg-4">
                            <span id="spryselect1">
                                <select multiple name="usergroupname[]" class="select2 wdt100">
                                    <option   value="">اختر مجموعه مستخدمين</option>
                                    <?php  $_smarty_tpl->tpl_vars['myalloldusergroup'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myalloldusergroup']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alloldusergroup']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myalloldusergroup']->key => $_smarty_tpl->tpl_vars['myalloldusergroup']->value){
$_smarty_tpl->tpl_vars['myalloldusergroup']->_loop = true;
?>

                                    <option selected="selected" value="<?php echo $_smarty_tpl->tpl_vars['myalloldusergroup']->value->usergroupid;?>
"><?php echo $_smarty_tpl->tpl_vars['myalloldusergroup']->value->usergroupname;?>
</option>
                                    <?php } ?>
                                    <?php  $_smarty_tpl->tpl_vars['myallusergroup'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myallusergroup']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['allusergroup']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myallusergroup']->key => $_smarty_tpl->tpl_vars['myallusergroup']->value){
$_smarty_tpl->tpl_vars['myallusergroup']->_loop = true;
?>
                                    <option value="<?php echo $_smarty_tpl->tpl_vars['myallusergroup']->value->usergroupid;?>
" <?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallusergroup']->value->usergroupid;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1=="1"){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallusergroup']->value->usergroupname;?>
</option>
                                    <?php } ?>
                                </select>
                                <span class="selectInvalidMsg">****.</span><span class="selectRequiredMsg">****.</span></span>
                        </div>
                    </div>

                    <!-- =================================================   -->

                    <div class="form-group">
                        <div class="col-lg-offset-2 col-lg-4">
                            <button type="submit"  class="btn btn-primary pull-left">حفظ الامر</button>
                        </div>
                    </div>


                </form>
            </div>
        </div>




    </div>
</div>





<script type="text/javascript">
    var name = new Spry.Widget.ValidationTextField("name");
    var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "real");
    var spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {invalidValue: "-1"});

</script>



<script type="text/javascript">
    var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
</script>
<?php }} ?>