

<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=update" 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"  value="{$loadData->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="{$loadData->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/{$loadData->urlimage}"  width="60" height="60"/> 
                  <input type="file" name="urlimage" id="urlimage"    placeholder="الصوره" class="form-control" />
                  
                  <input name="oldimage" type="hidden" value="{$loadData->urlimage}" />
                   <input name="menuurlid" type="hidden" value="{$loadData->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>
                  {foreach $alloldusergroup as $myalloldusergroup}
                  
                   <option selected="selected" value="{$myalloldusergroup->usergroupid}">{$myalloldusergroup->usergroupname}</option>
                  {/foreach}
                 {foreach $allusergroup as $myallusergroup}
                  <option value="{$myallusergroup->usergroupid}" {if {$myallusergroup->usergroupid} eq "1"} selected="selected" {/if}>{$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 spryselect1 = new Spry.Widget.ValidationSelect("spryselect1", {invalidValue:"-1"});

</script>

{/literal}

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