<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">
            <div class="panel-heading">
                <h3 class="panel-title">اضافة رابط</h3>
            </div>
            <div class="panel-body">
                
                
                {literal}
                <form class="nameToBeChecked form-horizontal" enctype="multipart/form-data" role="form" action="menuurController.php?do=add" method="post" >
                    
                    {/literal}    
                    
                    
                    
                    
                    <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">
                            <input type="file" name="urlimage" id="urlimage"  required="required"  placeholder="الصوره" class="form-control" />
                        </div>
                    </div>
                    
                    <!-- ========={if {$myallusergroup->usergroupid} eq "1"} selected="selected" {/if}========================================   --> 
                    
                    
                    
                    <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>
                                    {foreach $allusergroup as $myallusergroup}
                                    <option  value="{$myallusergroup->usergroupid}" >{$myallusergroup->usergroupname}</option>
                                    {/foreach}
                                </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>



{literal}

<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"});



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


