1. Summary
  2. Files
  3. Support
  4. Report Spam
  5. Create account
  6. Log in

Changeset 4035

Show
Ignore:
Timestamp:
02/07/12 21:13:55 (16 months ago)
Author:
oscim
Message:

[BO] Ajout code js base jquery dans header.php pour selection de toutes les lignes d un tableau dans les listing
ajustement de adminNotif , report des gabarits ds un dossier independant, ajout checkbox pour la selection de toutes les lignes

Location:
trunk/catalog/admin/includes
Files:
1 added
2 modified
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/catalog/admin/includes/gabarit/adminNotif/display_view.listing.gab

    r3687 r4035  
    11<?php 
    22/** 
    3   @licence GPL 2005-2011  The osCSS developers - osCSS Open Source E-commerce 
     3  @licence GPL 2005-2012  The osCSS developers - osCSS Open Source E-commerce 
    44  @portion code Copyright (c) 2002 osCommerce 
    55  @package osCSS-2 <www http://www.oscss.org> 
    6   @version 2.1.0 
    7   @date  11/04/11, 10:34 
     6  @version 2.1.1 
     7  @date  09/12/2012, 10:34 
    88  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr> 
    99  @encode UTF-8 
     
    3030        <tfoot> 
    3131          <tr> 
    32             <td colspan="2">&nbsp;</td> 
     32            <td colspan="2"><?php echo tep_draw_checkbox_field('select_all', 'select_all' ); ?></td> 
    3333            <td colspan="4"><?php printf(CsrtAction::getButton('button_action', IMAGE_DELETE, 'delete'), '',  ' name="delete" ' ); ?></td> 
    3434          </tr> 
     
    3737          <?php foreach(adminNotif::$list as $notif): ?> 
    3838            <tr class="view parent dataTableRow <?php if ((!isset($_GET['mID'])) || ($_GET['mID'] == $notif['admin_id']) ) echo "Selected"; ?>" > 
    39               <td><?php echo tep_draw_checkbox_field('multi['.$notif['notif_id'].']', 'multi_'.$notif['notif_id'] ); ?></td> 
     39              <td><?php echo tep_draw_checkbox_field('multi['.$notif['notif_id'].']', 'multi_'.$notif['notif_id'] ,'','','','class="multi"' ); ?></td> 
    4040              <td><?php echo $notif['notif_id']; ?></td> 
    4141              <td><?php echo ($notif['notif_type']==0)? __('type user') : __('type group') ; ?></td> 
  • trunk/catalog/admin/includes/header.php

    r4017 r4035  
    55  @package osCSS-2 <www http://www.oscss.org> 
    66  @version 2.1.1 
    7   @date  01/01/2012, 18:17 
     7  @date  09/12/2012, 18:17 
    88  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr> 
    99  @encode UTF-8 
     
    8989 
    9090//      simple_tooltip("input","tooltip"); 
     91 
     92// Multi in datatable, for select all rows 
     93        $("#select_all").click(function(){ 
     94                var checked_status = $("#select_all").is(':checked'); 
     95                $("input[type='checkbox'].multi").each(function(){ 
     96                        if(checked_status == true) 
     97                                this.checked = true; 
     98                        else 
     99                                this.checked = false; 
     100                }); 
     101        }); 
    91102} 
    92103 
  • trunk/catalog/admin/includes/modules/pages/adminNotif.php

    r3954 r4035  
    11<?php if (!defined('HTTP_SERVER')) die('You can not access this file directly!'); 
    22/** 
    3   @licence GPL 2005-2011  The osCSS developers - osCSS Open Source E-commerce 
     3  @licence GPL 2005-2012  The osCSS developers - osCSS Open Source E-commerce 
    44  @portion code Copyright (c) 2002 osCommerce 
    55  @package osCSS-2 <www http://www.oscss.org> 
    66  @version 2.1.1 
    7   @date  14/12/11, 14:49 
     7  @date  09/12/2012, 10:34 
    88  @author oscim <mail aurelien@oscim.fr> <www http://www.oscim.fr> 
    99  @encode UTF-8 
     
    113113  } 
    114114 
    115   public function get_header(){ return false; } 
     115  public function get_header(){ return false;} 
    116116 
    117117  public static function load_db_values($ID){ 
     
    135135      case 'configdelete': 
    136136      case 'config': 
    137         self::loadConfigUser(); 
    138         return tep_get_include_contents(self::$code.'.config'); 
     137                                self::loadConfigUser(); 
     138                                return tep_get_include_contents(self::$code.'/display_view.config'); 
    139139      break; 
    140140 
    141141      case 'view': 
    142         return tep_get_include_contents(self::$code.'.view'); 
     142                                return tep_get_include_contents(self::$code.'/display_view.view'); 
    143143      break; 
    144144      default: 
    145         self::loadNotifUser(); 
    146         return tep_get_include_contents(self::$code.'.listing'); 
     145                                self::loadNotifUser(); 
     146                                return tep_get_include_contents(self::$code.'/display_view.listing'); 
    147147    } 
    148148  }