<?php /* Smarty version Smarty-3.1.11, created on 2024-07-15 16:56:15
         compiled from "..\views\default\menuurlview\show.html" */ ?>
<?php /*%%SmartyHeaderCode:239576695388f9f2362-66958257%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0be0d50939007ed2b317bb87f600a8d667b67481' => 
    array (
      0 => '..\\views\\default\\menuurlview\\show.html',
      1 => 1672089200,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '239576695388f9f2362-66958257',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'youtubes' => 0,
    'outputString' => 0,
    'alldata' => 0,
    'myalldata' => 0,
    'i' => 0,
    'alloldusergroup' => 0,
    'myalloldusergroup' => 0,
    'allusergroup' => 0,
    'myallusergroup' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.11',
  'unifunc' => 'content_6695388fa90ca8_11514267',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_6695388fa90ca8_11514267')) {function content_6695388fa90ca8_11514267($_smarty_tpl) {?><style>
    .sucess-span {
        font-size: 12px;
        color: white;
        background-color: #73a973;
        padding: 5px;
        display: none;
    }
    .error-span {
        font-size: 12px;
        color: white;
        background-color: #c74c4c;
        padding: 5px;
        display: none;
    }
</style>
<div class="row">
    <div class="container">

        <ol class="breadcrumb">
            <li><a href="#">الروابط</a></li>
            <li><a href="menuurController.php?do=">عرض الروابط</a></li>
            <li class="active">عرض الروابط</li>
        </ol>




        <div class="panel panel-default panel-m">
            <!-- Default panel contents -->
            <div class="panel-heading" style="padding:5px 15px 15px">
                <h3 class="panel-title" style="display: inline-block;">عرض الروابط</h3>
                <a href="<?php echo $_smarty_tpl->tpl_vars['youtubes']->value[0]->url;?>
" target="_blank" class="hidden-print"><img src="../views/default/assets/img/youtube.png" class="pull-left" alt="Youtube" style="width: 2%;"></a>
                <a href="menuurController.php" class="hidden-print"><input type="button"  id="submit" style="margin-left: 12px" class="btn btn-primary pull-left " value="إضافة جديد"/></a>
            </div>
            <!--<div class="panel-heading">عرض الروابط</div>-->
            <div class="panel-body">


                <div id="outputString" class="alert alert-block alert-success fade in" style="display:none">
                    <button type="button" class="close pull-left" data-dismiss="alert" aria-hidden="true">&times;</button>

                    <p id="outputStringValue"><?php echo $_smarty_tpl->tpl_vars['outputString']->value;?>
</p>

                    <div class="clearfix"></div>
                </div>



            </div>
            <hr/>



            <table class="table table-black">
                <thead>
                    <tr>

                        <th>الاسم</th>
                        <th>اللينك</th>
                        <th>مجموعات المستخدمين</th>
                        <th>الترتيب</th>

                        <th>الصوره</th>
                        <th>تعديل</th>
                        <th>حذف</th>

                    </tr>
                </thead>
                <tbody>



                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable(1, null, 0);?>
                    <?php  $_smarty_tpl->tpl_vars['myalldata'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['myalldata']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['alldata']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['myalldata']->key => $_smarty_tpl->tpl_vars['myalldata']->value){
$_smarty_tpl->tpl_vars['myalldata']->_loop = true;
?>


                    <tr>



                        <td><?php echo $_smarty_tpl->tpl_vars['myalldata']->value->urltitle;?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['myalldata']->value->menuurl;?>
</td>
                        <td>
                            <select multiple name="usergroupname<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
[]" id="usergroupname<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->menuurlid;?>
" class="select2 wdt100 saveMenuGroups" placeholder="اختر مجموعه مستخدمين">
                                <?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 if (in_array($_smarty_tpl->tpl_vars['myallusergroup']->value->usergroupid,$_smarty_tpl->tpl_vars['myalldata']->value->usergroupid)){?> selected="selected" <?php }?>><?php echo $_smarty_tpl->tpl_vars['myallusergroup']->value->usergroupname;?>
</option>
                                <?php } ?>
                            </select>
                            <span class="sucess-span" id="sucess<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->menuurlid;?>
">تم الحفظ</span>
                            <span class="error-span" id="error<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->menuurlid;?>
">حدث خطأ</span>
                        </td>
                        <td><input type="text" name="order_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" id="order_<?php echo $_smarty_tpl->tpl_vars['i']->value;?>
" data-id="<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->menuurlid;?>
" class="orderRows" value="<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->orderno;?>
"/></td>


                        <td>
                            <img src="../views/default/images/upload/images150_150/<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->urlimage;?>
"  width="32" height="32"/>
                        </td>



                        <td class="noprint">
                            <a href="menuurController.php?do=edit&id=<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->menuurlid;?>
" class="btn btn-default btn-lg editicon"></a>
                        </td>
                        <td>

                            <a href="menuurController.php?do=delete&id=<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->menuurlid;?>
" name="dd" type="button" class="btn btn-default btn-lg deleteicon conformdel1" data-position="menuurController.php?do=delete&id=<?php echo $_smarty_tpl->tpl_vars['myalldata']->value->menuurlid;?>
" ></a>


                        </td>



                    </tr>
                    <?php $_smarty_tpl->tpl_vars['i'] = new Smarty_variable($_smarty_tpl->tpl_vars['i']->value+1, null, 0);?>
                    <?php } ?>


                </tbody>
            </table>





            <div class="clearfix"></div>




            <div  class="noprint">
                <div class="col-lg-12">


                    <div class="form-group">
                        <div class="col-lg-4">

                        </div>
                    </div>

                </div>
                <div class="clearfix"></div>
            </div>






            <div class="clearfix"></div>


        </div>



    </div>

</div>


<!-- Modal -->
<div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close pull-left" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">تأكيد حذف اللينك</h4>
            </div>
            <div class="modal-body">
                هل تريد حذف هذه اللينك؟
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">لا</button>
                <button type="button" class="btn btn-primary savemodel1">نعم</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


<?php }} ?>