<?
    global $vis_language;
    $paging_list='';
    for($i=0;$i<$view_info['page_count'];$i++) $paging_list.='<option value="'.$i.'" '.(($client_info['page']==$i)?'selected="selected"':'').'>'.($i+1).'</option>';
?>
<div id="vis_client_list"><div class="vis_main_window vis_shadow vis_round_corner"><table cellpadding="0" cellspacing="0" width="100%"><tr><td>
    <div class="vis_main_header"><? echo $operation['view_title']; ?>(<? echo ($client_info['total']!=0)?$client_info['total']:0; ?>)</div></td><td align="right">
    
       
        </td></tr></table>
    <!-- form name="vis_client_form_search" id="vis_client_form_search" --><div class="vis_main_window_content vis_round_corner"><table cellpadding="0" cellspacing="0" width="100%"><tr><td>
       <div class="vis_mass_action">
            <span class="vis_button"><input name="mass_action" type="checkbox" value="1" onchange="$(this).visInterface('toogle_list_check', {'vis_form':'#vis_client_search_form', 'vis_list_status_class':'.vis_list_checkbox'})" /> 
            <span class="vis-icon vis-icon-arrow-down" onclick="$(this).parent().visInterface('load_dropdown', {'vis_static_area':'#vis_client_selection_search'})"></span></span>
            <span class="vis_button" onclick="$(this).visInterface('load_dropdown', {'vis_static_area':'#vis_client_actions_search'})" title="<? echo $vis_language['TXTACTION']; ?>"><span class="vis-icon-med vis-icon-action"></span> <span class="vis-icon vis-icon-arrow-down"></span></span>
            <div id="vis_client_actions_search" style="display:none">
             
                <li onclick="$(this).visExecution('submit_form', {'vis_module':'client', 'vis_operation':'client_approval','vis_form':'vis_client_search_form','vis_approve':1})"><? echo $vis_language['TXTAPPROVE']; ?></li>
                <li onclick="$(this).visExecution('submit_form', {'vis_module':'client', 'vis_operation':'client_approval','vis_form':'vis_client_search_form','vis_approve':0})"><? echo $vis_language['TXTDISAPPROVE']; ?></li>
                <li onclick="$(this).visExecution('submit_form',{'vis_module':'client', 'vis_operation':'ban_client', 'vis_form':'vis_client_search_form','vis_remove_ban':0})"><? echo $vis_language['TXTBAN']; ?></li>
                 <li onclick="$(this).visExecution('submit_form',{'vis_module':'client', 'vis_operation':'ban_client', 'vis_form':'vis_client_search_form','vis_remove_ban':1})"><? echo $vis_language['TXTREMOVEBAN']; ?></li>
              
            </div>
            <div id="vis_client_selection_search" style="display:none">
                <li onclick="$(this).visInterface('toogle_list_check', {'vis_form':'#vis_client_search_form', 'vis_list_status_class':'.vis_list_checkbox', 'vis_list_status':'checked'})"><? echo $vis_language['TXTALL']; ?></li>
                <li onclick="$(this).visInterface('toogle_list_check', {'vis_form':'#vis_client_search_form', 'vis_list_status_class':'.vis_list_checkbox', 'vis_list_status':false})"><? echo $vis_language['TXTNONE']; ?></li>
            </div>
            <?php if($client_details != -1) {?>
            <input type="hidden" value="client" name="vis_module"><input type="hidden" value="client_search" name="vis_operation">
           <!-- <input type="hidden" name="vis_page" id= "vis_page" value="<script>$('#pageing').val()</script>"> -->
            <input type="hidden" value="true" name="vis_export"><input class="vis_button_export" type="submit" value="<?= $vis_language['TXTEXPORT']; ?>" name="vis_submit"> 
            <?php } ?>
        </div>
        </td><td align="right"><span class="vis_sub_header_normal"><? echo $vis_language['TXTPAGE']; ?>:</span> <select id="pageing" name="pageing" style="width:70px" onchange="$(this).parents('#vis_client_list').visExecution('load_operations',{'vis_module':'client', 'vis_operation':'client_search', 'vis_page':this.value,'vis_form':'vis_client_search_form'})"><?
            echo $paging_list;
        ?></select></td></tr></table>
        <div class="vis_seperator_horizontal"></div><? include_once(VIS_PATH_TEMPLATE.'client_list.php'); ?>
        <div class="vis_seperator_horizontal"></div>
        <table cellpadding="0" cellspacing="0" width="100%"><tr><td>
         <div class="vis_mass_action">
            <span class="vis_button"><input name="mass_action" type="checkbox" value="1" onchange="$(this).visInterface('toogle_list_check', {'vis_form':'#vis_client_search_form', 'vis_list_status_class':'.vis_list_checkbox'})" /> 
            <span class="vis-icon vis-icon-arrow-down" onclick="$(this).parent().visInterface('load_dropdown', {'vis_static_area':'#vis_client_selection_search'})"></span></span>
            <span class="vis_button" onclick="$(this).visInterface('load_dropdown', {'vis_static_area':'#vis_client_actions_search'})" title="<? echo $vis_language['TXTACTION']; ?>"><span class="vis-icon-med vis-icon-action"></span> <span class="vis-icon vis-icon-arrow-down"></span></span>
            <div id="vis_client_actions_search" style="display:none">
               
                <li onclick="$(this).visExecution('submit_form', {'vis_module':'client', 'vis_operation':'client_approval','vis_form':'vis_client_search_form','vis_approve':1})"><? echo $vis_language['TXTAPPROVE']; ?></li>
                <li onclick="$(this).visExecution('submit_form', {'vis_module':'client', 'vis_operation':'client_approval','vis_form':'vis_client_search_form','vis_approve':0})"><? echo $vis_language['TXTDISAPPROVE']; ?></li>
                <li onclick="$(this).visExecution('submit_form',{'vis_module':'client', 'vis_operation':'ban_client', 'vis_form':'vis_client_search_form','vis_remove_ban':0})"><? echo $vis_language['TXTBAN']; ?></li>
                 <li onclick="$(this).visExecution('submit_form',{'vis_module':'client', 'vis_operation':'ban_client', 'vis_form':'vis_client_search_form','vis_remove_ban':1})"><? echo $vis_language['TXTREMOVEBAN']; ?></li>
              
            </div>
            <div id="vis_client_selection_search" style="display:none">
                <li onclick="$(this).visInterface('toogle_list_check', {'vis_form':'#vis_client_search_form', 'vis_list_status_class':'.vis_list_checkbox', 'vis_list_status':'checked'})"><? echo $vis_language['TXTALL']; ?></li>
                <li onclick="$(this).visInterface('toogle_list_check', {'vis_form':'#vis_client_search_form', 'vis_list_status_class':'.vis_list_checkbox', 'vis_list_status':false})"><? echo $vis_language['TXTNONE']; ?></li>
            </div>
           <?php if($client_details != -1) {?>
            <input type="hidden" value="client" name="vis_module"><input type="hidden" value="client_search" name="vis_operation">
            <!-- <input type="hidden" name="vis_page" id= "vis_page" value="<script>$('#pageing').val()</script>"> -->
            <input type="hidden" value="true" name="vis_export"><input class="vis_button_export" type="submit" value="<?= $vis_language['TXTEXPORT']; ?>" name="vis_submit"> 
            <?php  } ?>
        </div></td><td align="right"><span class="vis_sub_header_normal"><? echo $vis_language['TXTPAGE']; ?>:</span> <select id="pageing" name="pageing" style="width:70px" onchange="$(this).parents('#vis_client_list').visExecution('load_operations',{'vis_module':'client', 'vis_operation':'client_search', 'vis_page':this.value,'vis_form':'vis_client_search_form'})"><?
            echo $paging_list;
        ?></select></td></tr></table>
    </div><!-- /form -->
</div>