⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 entries.php

📁 this the oscommerce 3.0 aplha 4
💻 PHP
字号:
<?php/*  $Id: $  osCommerce, Open Source E-Commerce Solutions  http://www.oscommerce.com  Copyright (c) 2007 osCommerce  This program is free software; you can redistribute it and/or modify  it under the terms of the GNU General Public License v2 (1991)  as published by the Free Software Foundation.*/?><h1><?php echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule()), $osC_Template->getPageTitle()); ?></h1><?php  if ($osC_MessageStack->size($osC_Template->getModule()) > 0) {    echo $osC_MessageStack->output($osC_Template->getModule());  }?><p align="right"><?php echo '<input type="button" value="' . $osC_Language->get('button_back') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="infoBoxButton" /> <input type="button" value="' . $osC_Language->get('button_insert') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page'] . '&action=entrySave') . '\';" class="infoBoxButton" />'; ?></p><?php  $Qentries = $osC_Database->query('select z2gz.association_id, z2gz.zone_country_id, c.countries_name, z2gz.zone_id, z2gz.geo_zone_id, z2gz.last_modified, z2gz.date_added, z.zone_name from :table_zones_to_geo_zones z2gz left join :table_countries c on (z2gz.zone_country_id = c.countries_id) left join :table_zones z on (z2gz.zone_id = z.zone_id) where z2gz.geo_zone_id = :geo_zone_id order by c.countries_name, z.zone_name');  $Qentries->bindTable(':table_zones_to_geo_zones', TABLE_ZONES_TO_GEO_ZONES);  $Qentries->bindTable(':table_zones', TABLE_ZONES);  $Qentries->bindTable(':table_countries', TABLE_COUNTRIES);  $Qentries->bindInt(':geo_zone_id', $_GET[$osC_Template->getModule()]);  $Qentries->execute();?><table border="0" width="100%" cellspacing="0" cellpadding="2">  <tr>    <td><?php echo sprintf($osC_Language->get('batch_results_number_of_entries'), ($Qentries->numberOfRows() > 0 ? 1 : 0), $Qentries->numberOfRows(), $Qentries->numberOfRows()); ?></td>  </tr></table><form name="batch" action="#" method="post"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable">  <thead>    <tr>      <th><?php echo $osC_Language->get('table_heading_country'); ?></th>      <th><?php echo $osC_Language->get('table_heading_zone'); ?></th>      <th width="150"><?php echo $osC_Language->get('table_heading_action'); ?></th>      <th align="center" width="20"><?php echo osc_draw_checkbox_field('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>    </tr>  </thead>  <tfoot>    <tr>      <th align="right" colspan="3"><?php echo '<input type="image" src="' . osc_icon_raw('trash.png') . '" title="' . $osC_Language->get('icon_trash') . '" onclick="document.batch.action=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page'] . '&action=batchDeleteEntries') . '\';" />'; ?></th>      <th align="center" width="20"><?php echo osc_draw_checkbox_field('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>    </tr>  </tfoot>  <tbody><?php  while ($Qentries->next()) {?>    <tr onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">      <td><?php echo (($Qentries->valueInt('zone_country_id') > 0) ? $Qentries->value('countries_name') : $osC_Language->get('all_countries')); ?></td>      <td><?php echo (($Qentries->valueInt('zone_id') > 0) ? $Qentries->value('zone_name') : $osC_Language->get('all_zones')); ?></td>      <td align="right"><?php    echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page'] . '&zeID=' . $Qentries->valueInt('association_id') . '&action=entrySave'), osc_icon('edit.png')) . '&nbsp;' .         osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '=' . $_GET[$osC_Template->getModule()] . '&page=' . $_GET['page'] . '&zeID=' . $Qentries->valueInt('association_id') . '&action=entryDelete'), osc_icon('trash.png'));?>      </td>      <td align="center"><?php echo osc_draw_checkbox_field('batch[]', $Qentries->valueInt('association_id'), null, 'id="batch' . $Qentries->valueInt('association_id') . '"'); ?></td>    </tr><?php    }?>  </tbody></table></form><table border="0" width="100%" cellspacing="0" cellpadding="2">  <tr>    <td style="opacity: 0.5; filter: alpha(opacity=50);"><?php echo '<b>' . $osC_Language->get('table_action_legend') . '</b> ' . osc_icon('edit.png') . '&nbsp;' . $osC_Language->get('icon_edit') . '&nbsp;&nbsp;' . osc_icon('trash.png') . '&nbsp;' . $osC_Language->get('icon_trash'); ?></td>  </tr></table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -