<?php /* Smarty version Smarty-3.1.11, created on 2023-12-09 23:47:53
         compiled from "../views/default/menuurlview/add.html" */ ?>
<?php /*%%SmartyHeaderCode:13528667066574e089dcb507-54874040%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '97a3e61189bf1921db863c1e56587d4d0785babf' => 
    array (
      0 => '../views/default/menuurlview/add.html',
      1 => 1693253994,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '13528667066574e089dcb507-54874040',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'nextId' => 0,
    'myallusergroup' => 0,
    'allusergroup' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6574e08a001c48_93642583',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6574e08a001c48_93642583')) {function content_6574e08a001c48_93642583($_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=add" 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"   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"   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="orderSpray">
                                <input type="text" name="order" id="order"   placeholder="الترتيب" class="form-control" value="<?php echo $_smarty_tpl->tpl_vars['nextId']->value;?>
"/>
                                <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">
                            <input type="file" name="urlimage" id="urlimage"  required="required"  placeholder="الصوره" class="form-control" />
                        </div>
                    </div>

                    <!-- =========<?php ob_start();?><?php echo $_smarty_tpl->tpl_vars['myallusergroup']->value->usergroupid;?>
<?php $_tmp1=ob_get_clean();?><?php if ($_tmp1=="1"){?> selected="selected" <?php }?>========================================   -->



                    <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['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 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>



    

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

        var orderSpray = new Spry.Widget.ValidationTextField("orderSpray", "integer");

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


<?php }} ?>