• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tep_datetime_short函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中tep_datetime_short函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_datetime_short函数的具体用法?PHP tep_datetime_short怎么用?PHP tep_datetime_short使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了tep_datetime_short函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getOutput

 function getOutput()
 {
     $cache_file = DIR_FS_CACHE . 'oscommerce_version_check.cache';
     $current_version = tep_get_version();
     $new_version = false;
     if (file_exists($cache_file)) {
         $date_last_checked = tep_datetime_short(date('Y-m-d H:i:s', filemtime($cache_file)));
         $releases = unserialize(implode('', file($cache_file)));
         foreach ($releases as $version) {
             $version_array = explode('|', $version);
             if (version_compare($current_version, $version_array[0], '<')) {
                 $new_version = true;
                 break;
             }
         }
     } else {
         $date_last_checked = MODULE_ADMIN_DASHBOARD_VERSION_CHECK_NEVER;
     }
     $output = '<table border="0" width="100%" cellspacing="0" cellpadding="4">' . '  <tr class="dataTableHeadingRow">' . '    <td class="dataTableHeadingContent">' . MODULE_ADMIN_DASHBOARD_VERSION_CHECK_TITLE . '</td>' . '    <td class="dataTableHeadingContent" align="right">' . MODULE_ADMIN_DASHBOARD_VERSION_CHECK_DATE . '</td>' . '  </tr>';
     if ($new_version == true) {
         $output .= '  <tr>' . '    <td class="messageStackWarning" colspan="2">' . tep_image('images/icons/warning.gif', ICON_WARNING) . '&nbsp;<strong>' . MODULE_ADMIN_DASHBOARD_VERSION_CHECK_UPDATE_AVAILABLE . '</strong></td>' . '  </tr>';
     }
     $output .= '  <tr class="dataTableRow" onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">' . '    <td class="dataTableContent"><a href="' . tep_href_link('version_check.php') . '">' . MODULE_ADMIN_DASHBOARD_VERSION_CHECK_CHECK_NOW . '</a></td>' . '    <td class="dataTableContent" align="right">' . $date_last_checked . '</td>' . '  </tr>' . '</table>';
     return $output;
 }
开发者ID:katapofatico,项目名称:Responsive-osCommerce,代码行数:25,代码来源:d_version_check.php


示例2: tep_db_num_rows

$http_error_query_numrows = tep_db_num_rows($http_error_query_numrows);
$rows = 0;
$http_error_query = tep_db_query($http_error_query_raw);
while ($http_error = tep_db_fetch_array($http_error_query)) {
    $rows++;
    if (strlen($rows) < 2) {
        $rows = '0' . $rows;
    }
    ?>
              <tr class="dataTableRow" onMouseOver="rowOverEffect(this)" onMouseOut="rowOutEffect(this)">
                <td class="dataTableContent"><?php 
    echo $http_error['error_number'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo tep_datetime_short($http_error['error_timestamp']);
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $http_error['error_ip'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $http_error['error_url'];
    ?>
</td>
                <td class="dataTableContent"><?php 
    echo $http_error['error_browser'];
    ?>
</td>
                <td class="dataTableContent"><?php 
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:stats_http_error.php


示例3: tep_get_system_information

function tep_get_system_information()
{
    global $_SERVER;
    $db_query = tep_db_query("select now() as datetime");
    $db = tep_db_fetch_array($db_query);
    list($system, $host, $kernel) = preg_split('/[\\s,]+/', @exec('uname -a'), 5);
    return array('date' => tep_datetime_short(date('Y-m-d H:i:s')), 'system' => $system, 'kernel' => $kernel, 'host' => $host, 'ip' => gethostbyname($host), 'uptime' => @exec('uptime'), 'http_server' => $_SERVER['SERVER_SOFTWARE'], 'php' => PHP_VERSION, 'zend' => function_exists('zend_version') ? zend_version() : '', 'db_server' => DB_SERVER, 'db_ip' => gethostbyname(DB_SERVER), 'db_version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysql_get_server_info() : ''), 'db_date' => tep_datetime_short($db['datetime']));
}
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:8,代码来源:general.php


示例4: foreach

          <td colspan="2" class="window_header"><?php 
echo WPP_REFUND_TITLE;
?>
</td>
        </tr>
        <tr>
          <td align="right" width="120"><?php 
echo WPP_TRANSACTION;
?>
</td>
          <td><select name="refund_transaction_id" id="refund_transaction_id">
    <?php 
$order_status = 0;
foreach ($transactions as $t) {
    if ($t['transaction_id'] != '' && $t['transaction_type'] == 'CHARGE') {
        echo '<option value="' . $t['transaction_id'] . '">' . $t['transaction_id'] . ' (' . tep_datetime_short($t['date']) . ')</option>';
    }
    $order_status = $t['status_id'];
}
?>
            </select>
          </td>
        </tr>
        <tr>
          <td align="right"><?php 
echo WPP_REFUND_TYPE;
?>
</td>
          <td><select name="refund_type" id="refund_type" onchange="hideAmount(this.value);"><option value=""></option><option value="Partial"><?php 
echo WPP_REFUND_PARTIAL;
?>
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:paypal_wpp_refund.php


示例5: array

    ?>
</td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
<?php 
    $heading = array();
    $contents = array();
    switch ($HTTP_GET_VARS['action']) {
        case 'release':
            $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . tep_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount));
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('gv_queue.php', 'action=confirmrelease&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_confirm_red.gif', IMAGE_CONFIRM) . '</a> <a href="' . tep_href_link('gv_queue.php', 'action=cancel&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            $heading[] = array('text' => '[' . $gInfo->unique_id . '] ' . tep_datetime_short($gInfo->date_created) . ' ' . $currencies->format($gInfo->amount));
            $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link('gv_queue.php', 'action=release&gid=' . $gInfo->unique_id, 'NONSSL') . '">' . tep_image_button('button_release.gif', IMAGE_RELEASE) . '</a>');
            break;
    }
    if (tep_not_null($heading) && tep_not_null($contents)) {
        echo '            <td width="25%" valign="top">' . "\n";
        $box = new box();
        echo $box->infoBox($heading, $contents);
        echo '            </td>' . "\n";
    }
    ?>
          </tr>
        </table></td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
开发者ID:bamper,项目名称:xos_shop_system,代码行数:31,代码来源:gv_queue.php


示例6: array

 $heading = array();
 $contents = array();
 switch ($action) {
     case 'delete':
         $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_ORDER . '</strong>');
         $contents = array('form' => tep_draw_form('orders', FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=deleteconfirm'));
         $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
         $contents[] = array('text' => '<br><strong>' . $oInfo->customers_name . '</strong>');
         if (tep_not_null($oInfo->customers_ip)) {
             $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('order_blacklist', '1', false, '', 'onclick="if (this.checked) document.getElementById(\'order_blacklist_comment\').style.display = \'block\'; else document.getElementById(\'order_blacklist_comment\').style.display = \'none\';"') . ' ' . TEXT_DELETE_ORDER_BLACKLIST . '<div id="order_blacklist_comment" style="display: none;"><br>' . TEXT_DELETE_ORDER_BLACKLIST_COMMENTS . '<br>' . tep_draw_input_field('order_blacklist_reason', TEXT_DELETE_ORDER_BLACKLIST_COMMENTS_DEFAULT, 'size="35"') . '</div>');
         }
         $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
         break;
     default:
         if (isset($oInfo) && is_object($oInfo)) {
             $heading[] = array('text' => '<strong>[' . $oInfo->advance_orders_id . ']&nbsp;&nbsp;' . tep_datetime_short($oInfo->date_purchased) . '</strong>');
             $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=view') . '">' . tep_image_button('button_preview.gif', IMAGE_PREVIEW) . '</a> <a href="' . tep_href_link(FILENAME_ADVANCE_ORDERS, tep_get_all_get_params(array('oID', 'action')) . 'oID=' . $oInfo->advance_orders_id . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
             $contents[] = array('text' => '<br>' . TEXT_DATE_ORDER_CREATED . ' ' . tep_date_short($oInfo->date_purchased));
         }
         break;
 }
 if (tep_not_null($heading) && tep_not_null($contents)) {
     echo '            <td width="25%" valign="top">' . "\n";
     $box = new box();
     echo $box->infoBox($heading, $contents);
     echo '            </td>' . "\n";
 }
 ?>
       </tr>
     </table></td>
   </tr>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:advance_orders.php


示例7: array

        $contents[] = array('text' => '<br><strong>' . $tInfo->products_types_name . '</strong>');
        $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_PARAMETERS, 'tID=' . $tInfo->products_types_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
        break;
    default:
        if ($rows > 0) {
            if (isset($tInfo) && is_object($tInfo)) {
                $heading[] = array('text' => '<strong>' . $tInfo->products_types_name . '</strong>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_PARAMETERS, 'tID=' . $tInfo->products_types_id . '&action=edit_type') . '">' . tep_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . tep_href_link(FILENAME_PARAMETERS, 'tID=' . $tInfo->products_types_id . '&action=delete_type') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
                if (tep_not_null($tInfo->products_types_description)) {
                    $contents[] = array('text' => '<br>' . TEXT_TYPES_DESCRIPTION . '<br>' . nl2br($tInfo->products_types_description));
                }
                $contents[] = array('text' => '<br>' . TEXT_TYPES_PATH . ' ' . $tInfo->products_types_path);
                $contents[] = array('text' => '<br>' . TEXT_TYPES_LETTER_SEARCH . ' ' . ($tInfo->products_types_letter_search == '1' ? TEXT_YES : TEXT_NO));
                $contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . tep_datetime_short($tInfo->date_added));
                if (tep_not_null($tInfo->last_modified)) {
                    $contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . tep_datetime_short($tInfo->last_modified));
                }
            }
        }
        break;
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
      </tr>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:parameters.php


示例8: foreach

</td>
      <td class="dataTableHeadingContent"><?php 
    echo TABLE_HEADING_COMMENTS;
    ?>
</td>
      <td class="dataTableHeadingContent" align="right"><?php 
    echo TABLE_HEADING_CUSTOMER_NOTIFIED;
    ?>
</td>
    </tr>
<?php 
    foreach ($osC_Order->getStatusHistory() as $status_history) {
        ?>
    <tr class="dataTableRow">
      <td class="dataTableContent" valign="top"><?php 
        echo tep_datetime_short($status_history['date_added']);
        ?>
</td>
      <td class="dataTableContent" valign="top"><?php 
        echo $status_history['status'];
        ?>
</td>
      <td class="dataTableContent" valign="top"><?php 
        echo nl2br($status_history['comment']);
        ?>
</td>
      <td class="dataTableContent" align="right" valign="top"><?php 
        echo tep_image('templates/' . $template . '/images/icons/' . ($status_history['customer_notified'] === 1 ? 'checkbox_ticked.gif' : 'checkbox_crossed.gif'));
        ?>
</td>
    </tr>
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:31,代码来源:orders_edit.php


示例9: Copyright

  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/
?>

<table border="0" width="100%" cellspacing="0" cellpadding="4">
  <tr class="dataTableHeadingRow">
    <td class="dataTableHeadingContent" width="20">&nbsp;</td>
    <td class="dataTableHeadingContent"><?php 
echo ADMIN_INDEX_ADMIN_LOGINS_TITLE;
?>
</td>
    <td class="dataTableHeadingContent" align="right"><?php 
echo ADMIN_INDEX_ADMIN_LOGINS_DATE;
?>
</td>
  </tr>
<?php 
$logins_query = tep_db_query("select id, user_name, success, date_added from " . TABLE_ACTION_RECORDER . " where module = 'ar_admin_login' order by date_added desc limit 6");
while ($logins = tep_db_fetch_array($logins_query)) {
    echo '  <tr class="dataTableRow" onmouseover="rowOverEffect(this);" onmouseout="rowOutEffect(this);">' . '    <td class="dataTableContent" align="center">' . tep_image(DIR_WS_IMAGES . 'icons/' . ($logins['success'] == '1' ? 'tick.gif' : 'cross.gif')) . '</td>' . '    <td class="dataTableContent"><a href="' . tep_href_link(FILENAME_ACTION_RECORDER, 'module=ar_admin_login&aID=' . (int) $logins['id']) . '">' . tep_output_string_protected($logins['user_name']) . '</a></td>' . '    <td class="dataTableContent" align="right">' . tep_datetime_short($logins['date_added']) . '</td>' . '  </tr>';
}
?>
</table>
开发者ID:respencer,项目名称:oscommerce2,代码行数:30,代码来源:admin_logins.php


示例10: tep_datetime_short

        ?>
              </td>
              <td class="calign"><?php 
        echo !empty($entries['ticket']) ? $entries['ticket'] : '--';
        ?>
</td>
              <td><?php 
        echo $ticket_array['subject'] . ' (' . $postings['count'] . ')';
        ?>
</td>
              <td><?php 
        echo $ticket_array['sender'];
        ?>
</td>
              <td class="calign"><?php 
        echo tep_datetime_short($ticket_array['datestamp']);
        ?>
</td>
              <td><?php 
        echo $status_name;
        ?>
</td>
              <td><?php 
        echo $priority_name;
        ?>
</td>
              <td class="calign"><?php 
        echo $ticket_array['ip_address'];
        ?>
</td>
              <td class="calign">
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:31,代码来源:helpdesk.php


示例11: tep_get_system_information

function tep_get_system_information($anonymous = false)
{
    global $HTTP_SERVER_VARS;
    $db_query = tep_db_query("select now() as datetime");
    $db = tep_db_fetch_array($db_query);
    list($system, $host, $kernel) = preg_split('/[\\s,]+/', @exec('uname -a'), 5);
    $data = array();
    $data['oscommerce'] = array('version' => tep_get_version());
    $data['system'] = array('date' => tep_datetime_short(date('Y-m-d H:i:s')), 'os' => PHP_OS, 'kernel' => $kernel, 'host' => $host, 'uptime' => @exec('uptime'), 'ip' => gethostbyname($host), 'http_server' => $HTTP_SERVER_VARS['SERVER_SOFTWARE']);
    $data['mysql'] = array('version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysql_get_server_info() : ''), 'server' => DB_SERVER, 'ip' => gethostbyname(DB_SERVER), 'date' => tep_datetime_short($db['datetime']));
    $data['php'] = array('version' => PHP_VERSION, 'zend' => function_exists('zend_version') ? zend_version() : '', 'sapi' => PHP_SAPI, 'int_size' => defined('PHP_INT_SIZE') ? PHP_INT_SIZE : '', 'safe_mode' => (int) @ini_get('safe_mode'), 'open_basedir' => (int) @ini_get('open_basedir'), 'memory_limit' => @ini_get('memory_limit'), 'error_reporting' => error_reporting(), 'display_errors' => (int) @ini_get('display_errors'), 'allow_url_fopen' => (int) @ini_get('allow_url_fopen'), 'allow_url_include' => (int) @ini_get('allow_url_include'), 'file_uploads' => (int) @ini_get('file_uploads'), 'upload_max_filesize' => @ini_get('upload_max_filesize'), 'post_max_size' => @ini_get('post_max_size'), 'disable_functions' => @ini_get('disable_functions'), 'disable_classes' => @ini_get('disable_classes'), 'enable_dl' => (int) @ini_get('enable_dl'), 'magic_quotes_gpc' => (int) @ini_get('magic_quotes_gpc'), 'register_globals' => (int) @ini_get('register_globals'), 'filter.default' => @ini_get('filter.default'), 'zend.ze1_compatibility_mode' => (int) @ini_get('zend.ze1_compatibility_mode'), 'unicode.semantics' => (int) @ini_get('unicode.semantics'), 'zend_thread_safty' => (int) function_exists('zend_thread_id'), 'extensions' => get_loaded_extensions());
    // If we need anonymous data we need to remove some data which could
    // potentially be used to identify a particular installation. A SHA1 hash
    // is used purely to identify duplicate submissions
    if ($anonymous === true) {
        $data['system']['host'] = sha1($data['system']['host'] . $data['system']['ip']);
        $data['system']['ip'] = '0.0.0.0';
        $data['system']['uptime'] = '0';
        $data['mysql']['server'] = '';
        $data['mysql']['ip'] = '';
    }
    return $data;
}
开发者ID:scchristie,项目名称:oscommerce2,代码行数:23,代码来源:general.php


示例12: tep_datetime_short

    $style = '';
    //Set format for row
    if ($Message == 'Wrong Username') {
        $style = 'Alert';
    }
    if ($Message == 'Wrong Password') {
        $style = 'Warning';
    }
    echo '<tr class="dataTableRow' . $style . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">';
    ?>
				<td class="dataTableContent"><?php 
    echo $cust_logging['login_number'];
    ?>
</td>
				<td class="dataTableContent"><?php 
    echo tep_datetime_short($cust_logging['login_time']);
    ?>
</td>
				<td class="dataTableContent"><?php 
    echo $cust_logging['ip_address'];
    ?>
</td>
				<td class="dataTableContent"><?php 
    echo $cust_logging['user_name'];
    ?>
</td>
				<td class="dataTableContent">
                <?php 
    switch ($cust_logging['type']) {
        case 'Wrong Password':
            echo TEXT_WRONG_PASSWORD;
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:customer_logging.php


示例13: tep_href_link

    if (isset($oInfo) && $Qorders->valueInt('orders_id') == $oInfo->orders_id) {
        echo '      <tr class="selected">' . "\n";
    } else {
        echo '      <tr onMouseOver="rowOverEffect(this);" onMouseOut="rowOutEffect(this);" onClick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $Qorders->valueInt('orders_id')) . '\';">' . "\n";
    }
    ?>
        <td><?php 
    echo '<a href="' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $Qorders->valueInt('orders_id') . '&action=oEdit') . '">' . tep_image('images/icons/preview.gif', ICON_PREVIEW) . '&nbsp;' . $Qorders->valueProtected('customers_name') . '</a>';
    ?>
</td>
        <td><?php 
    echo strip_tags($Qorders->value('order_total'));
    ?>
</td>
        <td><?php 
    echo tep_datetime_short($Qorders->value('date_purchased'));
    ?>
</td>
        <td><?php 
    echo $Qorders->value('orders_status_name');
    ?>
</td>
        <td align="right">
<?php 
    echo '<a href="#" onClick="document.location.href=\'' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $Qorders->valueInt('orders_id') . '&action=oEdit') . '\';">' . tep_image('templates/' . $template . '/images/icons/16x16/configure.png', IMAGE_EDIT, '16', '16') . '</a>&nbsp;';
    if (isset($oInfo) && $Qorders->valueInt('orders_id') == $oInfo->orders_id) {
        echo '<a href="#" onClick="toggleInfoBox(\'oDelete\');">' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '</a>';
    } else {
        echo '<a href="' . tep_href_link(FILENAME_ORDERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . (isset($_GET['status']) ? 'status=' . $_GET['status'] . '&' : '') . (isset($_GET['cID']) ? 'cID=' . $_GET['cID'] . '&' : '') . 'page=' . $_GET['page'] . '&oID=' . $Qorders->valueInt('orders_id') . '&action=oDelete') . '">' . tep_image('templates/' . $template . '/images/icons/16x16/trash.png', IMAGE_DELETE, '16', '16') . '</a>';
    }
    ?>
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:31,代码来源:orders.php


示例14: tep_db_query

</b></th>
                            <th class="smallText" align="center"><b><?php 
    echo TABLE_HEADING_STATUS;
    ?>
</b></th>
                            <th width="50%" class="smallText" align="center"><b><?php 
    echo TABLE_HEADING_COMMENTS;
    ?>
</b></th>
                          </tr>
<?php 
    $supply_request_history_query = tep_db_query("SELECT * FROM " . TABLE_SUPPLY_REQUEST_STATUS_HISTORY . "\r\n\t\t\t\t\t\t\t\t\t\t\t\t  WHERE supply_request_id = '" . (int) $sID . "' \r\n\t\t\t\t\t\t\t\t\t\t\t\t  ORDER BY date_added\r\n\t\t\t\t\t\t\t\t\t\t\t\t");
    if (tep_db_num_rows($supply_request_history_query)) {
        while ($supply_request_history = tep_db_fetch_array($supply_request_history_query)) {
            echo '<tr>
					<td class="smallText" align="center">' . tep_datetime_short($supply_request_history['date_added']) . '</td>
					<td class="smallText" align="center">';
            if ($supply_request_history['supplier_notified'] == '1') {
                echo tep_image(DIR_WS_ICONS . 'tick.gif', ICON_TICK);
            } else {
                echo tep_image(DIR_WS_ICONS . 'cross.gif', ICON_CROSS);
            }
            echo '	</td>
					<td class="smallText" align="left">' . $supply_request_status_array[$supply_request_history['supply_request_status_id']] . '</td>
					<td class="smallText" align="left" width="50%">' . nl2br(tep_db_output($supply_request_history['comments'])) . '&nbsp;</td>
				  </tr>';
        }
    } else {
        echo ' <tr><td class="smallText" colspan="5">' . TEXT_NO_SUPPLY_REQUEST_HISTORY . '</td></tr>';
    }
    ?>
开发者ID:rrecurse,项目名称:IntenseCart,代码行数:31,代码来源:edit_supply_request.php


示例15: tep_datetime_short

      
   <?php 
}
?>
          <td class="main" align="right"><b><?php 
echo ENTRY_INVOICE_DATE_PURCHASED;
?>
<br><?php 
echo ENTRY_INVOICE_DATE_ZAHLBAR;
?>
</b></td>
   <?php 
if (EDIT_INVOICE_SHOW_DATE == 'Datum und Uhrzeit') {
    ?>
          <td class="main"><?php 
    echo tep_datetime_short($order->info['date_purchased']);
    ?>
</td>
   <?php 
} else {
    if (EDIT_INVOICE_SHOW_DATE == 'nur Datum') {
        ?>
          <td class="main" width="10%" align="right">&nbsp;<?php 
        echo tep_date_short($order->info['date_purchased']);
        ?>
<br><?php 
        echo tep_date_short_add($order->info['date_purchased'], 'day', ZAHLUNGSFAELLIGKEIT);
        ?>
</td>
   <?php 
    }
开发者ID:tapwag,项目名称:oscommerce_deutsch,代码行数:30,代码来源:invoice.php


示例16: tep_db_query

</td>
        <td class="dataTableHeadingContent" align="left"><?php 
    echo TABLE_HEADING_COMMENTS;
    ?>
</td>
      </tr>
<?php 
    $orders_history_query = tep_db_query("SELECT orders_status_history_id, orders_status_id, date_added, customer_notified, comments \n                                        FROM " . TABLE_ORDERS_STATUS_HISTORY . " \n                                        WHERE orders_id = '" . (int) $oID . "' \n                                        ORDER BY date_added");
    if (tep_db_num_rows($orders_history_query)) {
        while ($orders_history = tep_db_fetch_array($orders_history_query)) {
            $r++;
            $rowClass = $r / 2 == floor($r / 2) ? 'dataTableRowOver' : 'dataTableRow';
            if (ORDER_EDITOR_USE_AJAX == 'true') {
                echo '  <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . '    <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox" onClick="updateCommentsField(\'delete\', \'' . $orders_history['orders_status_history_id'] . '\', this.checked, \'\', this)"></div></td>' . "\n" . '    <td class="smallText">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . '    <td class="smallText" align="center">';
            } else {
                echo '  <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . '    <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox"></div></td>' . "\n" . '    <td class="smallText" align="center">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . '    <td class="smallText" align="center">';
            }
            if ($orders_history['customer_notified'] == '1') {
                echo tep_image(DIR_WS_ICONS . 'tick.png', ICON_TICK) . "</td>\n";
            } else {
                echo tep_image(DIR_WS_ICONS . 'cross.png', ICON_CROSS) . "</td>\n";
            }
            echo '    <td class="smallText" align="left">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n";
            echo '    <td class="smallText" align="left">';
            if (ORDER_EDITOR_USE_AJAX == 'true') {
                echo tep_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "40", "5", "" . tep_db_output($orders_history['comments']) . "", "onChange=\"updateCommentsField('update', '" . $orders_history['orders_status_history_id'] . "', 'false', encodeURIComponent(this.value))\"") . '' . "\n" . '    </td>' . "\n";
            } else {
                echo tep_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "40", "5", "" . tep_db_output($orders_history['comments']) . "") . '' . "\n" . '    </td>' . "\n";
            }
            echo '  </tr>' . "\n";
        }
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:edit_orders.php


示例17: tep_db_query

    ?>
</td>
   <td class="dataTableHeadingContent" align="left" width="10">&nbsp;</td>
    <td class="dataTableHeadingContent" align="left"><?php 
    echo TABLE_HEADING_COMMENTS;
    ?>
</td>
   </tr>
<?php 
    $r = 0;
    $orders_history_query = tep_db_query("SELECT orders_status_history_id, orders_status_id, date_added, customer_notified, comments \n                                    FROM " . TABLE_ORDERS_STATUS_HISTORY . " \n\t\t\t\t\t\t\t\t\tWHERE orders_id = '" . tep_db_prepare_input($_GET['oID']) . "' \n\t\t\t\t\t\t\t\t\tORDER BY date_added");
    if (tep_db_num_rows($orders_history_query)) {
        while ($orders_history = tep_db_fetch_array($orders_history_query)) {
            $r++;
            $rowClass = $r / 2 == floor($r / 2) ? 'dataTableRowOver' : 'dataTableRow';
            echo '  <tr class="' . $rowClass . '" id="commentRow' . $orders_history['orders_status_history_id'] . '" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this, \'' . $rowClass . '\')">' . "\n" . '	  <td class="smallText" align="center"><div id="do_not_delete"><input name="update_comments[' . $orders_history['orders_status_history_id'] . '][delete]" type="checkbox" onClick="updateCommentsField(\'delete\', \'' . $orders_history['orders_status_history_id'] . '\', this.checked, \'\', this)"></div></td>' . "\n" . '    <td class="dataTableHeadingContent" align="left" width="10">&nbsp;</td>' . "\n" . '    <td class="smallText" align="center">' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . '    <td class="dataTableHeadingContent" align="left" width="10">&nbsp;</td>' . "\n" . '    <td class="smallText" align="center">';
            if ($orders_history['customer_notified'] == '1') {
                echo tep_image(DIR_WS_ICONS . 'tick.png', ICON_TICK) . "</td>\n";
            } else {
                echo tep_image(DIR_WS_ICONS . 'cross.png', ICON_CROSS) . "</td>\n";
            }
            echo '    <td class="dataTableHeadingContent" align="left" width="10">&nbsp;</td>' . "\n" . '    <td class="smallText" align="left">' . $orders_status_array[$orders_history['orders_status_id']] . '</td>' . "\n";
            echo '    <td class="dataTableHeadingContent" align="left" width="10">&nbsp;</td>' . "\n" . '    <td class="smallText" align="left">' . tep_draw_textarea_field("update_comments[" . $orders_history['orders_status_history_id'] . "][comments]", "40", "5", "" . tep_db_output($orders_history['comments']) . "", "onChange=\"updateCommentsField('update', '" . $orders_history['orders_status_history_id'] . "', 'false', encodeURIComponent(this.value))\"") . '' . "\n" . '    </td>' . "\n";
            echo '  </tr>' . "\n";
        }
    } else {
        echo '  <tr>' . "\n" . '    <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . '  </tr>' . "\n";
    }
    ?>
  
  </table>
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:edit_orders_ajax.php


示例18: tep_db_query

<BR>
<P>
<BR>
<P>
<BR>
<P>
<tr>
<td class="smallText" align="center"><b>Date Added</b></td>
<td class="smallText" align="center"><b>Status</b></td>
<td class="smallText" align="center"><b>Comments</b></td>
</tr>
<tr>
<?php 
$orders_history_query = tep_db_query("select orders_status_id, date_added, customer_notified, comments from " . TABLE_ORDERS_STATUS_HISTORY . " where orders_id = '" . tep_db_input($oID) . "' order by date_added");
if (tep_db_num_rows($orders_history_query)) {
    while ($orders_history = tep_db_fetch_array($orders_history_query)) {
        echo '          <tr>' . "\n" . '            <td class="smallText" valign="middle" align="center" width = 100>' . tep_datetime_short($orders_history['date_added']) . '</td>' . "\n" . '            <td class="smallText" valign="middle" align="center" width = 100>' . $orders_status_array[$orders_history['orders_status_id']] . '&nbsp;</td>' . "\n" . '            <td class="smallText" valign="middle">' . nl2br(tep_db_output($orders_history['comments'])) . '&nbsp;</td>' . "\n" . '          </tr>' . "\n";
    }
} else {
    echo '          <tr>' . "\n" . '            <td class="smallText" colspan="5">' . TEXT_NO_ORDER_HISTORY . '</td>' . "\n" . '          </tr>' . "\n";
}
?>
</tr>
</table></CENTER>
<!-- body_text_eof //-->

<br>
</body>
</html>
<?php 
require DIR_WS_INCLUDES . 'application_bottom.php';
开发者ID:eosc,项目名称:EosC-2.3,代码行数:31,代码来源:invoice.php


示例19: osc_get_system_information

function osc_get_system_information()
{
    if (PHP_VERSION < 4.1) {
        global $_SERVER;
    }
    global $osC_Database;
    $Qdb_date = $osC_Database->query('select now() as datetime');
    $Qdb_uptime = $osC_Database->query('show status like "Uptime"');
    list($system, $host, $kernel) = preg_split('/[\\s,]+/', @exec('uname -a'), 5);
    $db_uptime = intval($Qdb_uptime->valueInt('Value') / 3600) . ':' . str_pad(intval($Qdb_uptime->valueInt('Value') / 60 % 60), 2, '0', STR_PAD_LEFT);
    return array('date' => tep_datetime_short(date('Y-m-d H:i:s')), 'system' => $system, 'kernel' => $kernel, 'host' => $host, 'ip' => gethostbyname($host), 'uptime' => @exec('uptime'), 'http_server' => $_SERVER['SERVER_SOFTWARE'], 'php' => PHP_VERSION, 'zend' => function_exists('zend_version') ? zend_version() : '', 'db_server' => DB_SERVER, 'db_ip' => gethostbyname(DB_SERVER), 'db_version' => 'MySQL ' . (function_exists('mysql_get_server_info') ? mysql_get_server_info() : ''), 'db_date' => tep_datetime_short($Qdb_date->value('datetime')), 'db_uptime' => $db_uptime);
}
开发者ID:itnovator,项目名称:oscommerce_cvs,代码行数:12,代码来源:general.php


示例20: tep_datetime_short


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tep_db_close函数代码示例发布时间:2022-05-23
下一篇:
PHP tep_date_short函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap