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

PHP objectInfo类代码示例

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

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



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

示例1: array

// | http://www.zen-cart.com/index.php                                    |
// |                                                                      |
// | Portions Copyright (c) 2003 osCommerce                               |
// +----------------------------------------------------------------------+
// | This source file is subject to version 2.0 of the GPL license,       |
// | that is bundled with this package in the file LICENSE, and is        |
// | available through the world-wide-web at the following url:           |
// | http://www.zen-cart.com/license/2_0.txt.                             |
// | If you did not receive a copy of the zen-cart license and are unable |
// | to obtain it through the world-wide-web, please send a note to       |
// | [email protected] so we can mail you a copy immediately.          |
// +----------------------------------------------------------------------+
//  $Id: collect_info.php 277 2004-09-10 23:03:52Z wilt $
//
$parameters = array('faqs_contact_name' => '', 'faqs_contact_mail' => '', 'faqs_name' => '', 'faqs_description' => '', 'faqs_answer' => '', 'faqs_url' => '', 'faqs_id' => '', 'faqs_image' => '', 'faqs_date_added' => '', 'faqs_last_modified' => '', 'faqs_status' => '', 'faqs_sort_order' => '0', 'master_faq_categories_id' => '');
$pInfo = new objectInfo($parameters);
if (isset($_GET['pID']) && empty($_POST)) {
    $faq = $db->Execute("select pd.faqs_name, pd.faqs_description, pd.faqs_answer, pd.faqs_url, pd.faqs_contact_name, pd.faqs_contact_mail,\n                                      p.faqs_id,\n                                      p.faqs_image,\n                                      p.faqs_date_added, p.faqs_last_modified,\n                                      p.faqs_status, \n                                      p.faqs_sort_order,\n                                      p.master_faq_categories_id\n                              from " . TABLE_FAQS . " p, " . TABLE_FAQS_DESCRIPTION . " pd\n                              where p.faqs_id = '" . (int) $_GET['pID'] . "'\n                              and p.faqs_id = pd.faqs_id\n                              and pd.language_id = '" . (int) $_SESSION['languages_id'] . "'");
    $pInfo->objectInfo($faq->fields);
} elseif (zen_not_null($_POST)) {
    $pInfo->objectInfo($_POST);
    $faqs_name = $_POST['faqs_contact_name'];
    $faqs_contact_name = $_POST['faqs_contact_mail'];
    $faqs_contact_mail = $_POST['faqs_name'];
    $faqs_description = $_POST['faqs_description'];
    $faqs_answer = $_POST['faqs_answer'];
    $faqs_url = $_POST['faqs_url'];
    $faqs_notify = $_POST['faqs_notify'];
}
$languages = zen_get_languages();
if (!isset($pInfo->faqs_status)) {
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:collect_info.php


示例2: zen_image

    ?>
</td>
									<td class="smallText" align="center" width="100"><?php 
    echo TEXT_LEGEND_BANNER_OPEN_NEW_WINDOWS . '<br />' . zen_image(DIR_WS_IMAGES . 'icon_orange_on.gif', IMAGE_ICON_BANNER_OPEN_NEW_WINDOWS_ON) . '&nbsp;' . zen_image(DIR_WS_IMAGES . 'icon_orange_off.gif', IMAGE_ICON_BANNER_OPEN_NEW_WINDOWS_OFF);
    ?>
</td>
								</tr>
							</table></td>
					</tr>
<?php 
}
// legend
if ($action == 'new') {
    $form_action = 'insert';
    $parameters = array('expires_date' => '', 'date_scheduled' => '', 'banners_title' => '', 'banners_url' => '', 'banners_group' => '', 'banners_image' => '', 'banners_html_text' => '', 'expires_impressions' => '', 'banners_open_new_windows' => '', 'banners_on_ssl' => '');
    $bInfo = new objectInfo($parameters);
    if (isset($_GET['bID'])) {
        $form_action = 'update';
        $bID = zen_db_prepare_input($_GET['bID']);
        $banner = $db->Execute("select banners_title, banners_url, banners_image, banners_group,\n                                     banners_html_text, status,\n                                     date_format(date_scheduled, '%Y/%m/%d') as date_scheduled,\n                                     date_format(expires_date, '%Y/%m/%d') as expires_date,\n                                     expires_impressions, date_status_change, banners_open_new_windows, banners_on_ssl, banners_sort_order\n                                     from " . TABLE_BANNERS . "\n                                     where banners_id = '" . (int) $bID . "'");
        $bInfo->objectInfo($banner->fields);
    } elseif (zen_not_null($_POST)) {
        $bInfo->objectInfo($_POST);
    }
    if (!isset($bInfo->status)) {
        $bInfo->status = '1';
    }
    switch ($bInfo->status) {
        case '0':
            $is_status = false;
            $not_status = true;
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:banner_manager.php


示例3: die

<?php

/**
 * @package admin
 * @copyright Copyright 2003-2011 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: collect_info.php 19330 2011-08-07 06:32:56Z drbyte $
 */
if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
}
$parameters = array('products_name' => '', 'products_description' => '', 'products_url' => '', 'products_id' => '', 'products_quantity' => '', 'products_model' => '', 'products_image' => '', 'products_price' => '', 'products_virtual' => DEFAULT_PRODUCT_MUSIC_PRODUCTS_VIRTUAL, 'products_weight' => '', 'products_date_added' => '', 'products_last_modified' => '', 'products_date_available' => '', 'products_status' => '', 'products_tax_class_id' => DEFAULT_PRODUCT_MUSIC_TAX_CLASS_ID, 'manufacturers_id' => '', 'products_quantity_order_min' => '', 'products_quantity_order_units' => '', 'products_priced_by_attribute' => '', 'product_is_free' => '', 'product_is_call' => '', 'products_quantity_mixed' => '', 'product_is_always_free_shipping' => DEFAULT_PRODUCT_MUSIC_PRODUCTS_IS_ALWAYS_FREE_SHIPPING, 'products_qty_box_status' => PRODUCTS_QTY_BOX_STATUS, 'products_quantity_order_max' => '0', 'products_sort_order' => '0', 'products_discount_type' => '0', 'products_discount_type_from' => '0', 'products_price_sorter' => '0', 'master_categories_id' => '');
$pInfo = new objectInfo($parameters);
if (isset($_GET['pID']) && empty($_POST)) {
    $product = $db->Execute("select pd.products_name, pd.products_description, pd.products_url,\r\n                                      p.products_id, p.products_quantity, p.products_model,\r\n                                      p.products_image, p.products_price, p.products_virtual, p.products_weight,\r\n                                      p.products_date_added, p.products_last_modified,\r\n                                      date_format(p.products_date_available, '%Y-%m-%d') as\r\n                                      products_date_available, p.products_status, p.products_tax_class_id,\r\n                                      pe.artists_id, pe.record_company_id,pe.music_genre_id,\r\n                                      p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,\r\n                                      p.product_is_free, p.product_is_call, p.products_quantity_mixed,\r\n                                      p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max,\r\n                                      p.products_sort_order,\r\n                                      p.products_discount_type, p.products_discount_type_from,\r\n                                      p.products_price_sorter, p.master_categories_id\r\n                              from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd,\r\n                                   " . TABLE_PRODUCT_MUSIC_EXTRA . " pe\r\n                              where p.products_id = '" . (int) $_GET['pID'] . "'\r\n                              and p.products_id = pd.products_id and p.products_id = pe.products_id\r\n                              and pd.language_id = '" . (int) $_SESSION['languages_id'] . "'");
    $pInfo->objectInfo($product->fields);
} elseif (zen_not_null($_POST)) {
    $pInfo->objectInfo($_POST);
    $products_name = $_POST['products_name'];
    $products_description = $_POST['products_description'];
    $products_url = $_POST['products_url'];
}
$artists_array = array(array('id' => '', 'text' => TEXT_NONE));
$artists = $db->Execute("select artists_id, artists_name\r\n                                   from " . TABLE_RECORD_ARTISTS . " order by artists_name");
while (!$artists->EOF) {
    $artists_array[] = array('id' => $artists->fields['artists_id'], 'text' => $artists->fields['artists_name']);
    $artists->MoveNext();
}
$record_company_array = array(array('id' => '', 'text' => TEXT_NONE));
$record_company = $db->Execute("select record_company_id, record_company_name\r\n                                   from " . TABLE_RECORD_COMPANY . " order by record_company_name");
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:collect_info.php


示例4: array

" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
?>
" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php 
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top">
<?php 
if ($action == 'new_product') {
    $parameters = array('products_name' => '', 'products_description' => '', 'products_spec' => '', 'products_url' => '', 'products_id' => '', 'products_quantity' => '', 'products_model' => '', 'products_image' => '', 'products_image_med' => '', 'products_image_lrg' => '', 'products_image_sm_1' => '', 'products_image_xl_1' => '', 'products_image_sm_2' => '', 'products_image_xl_2' => '', 'products_image_sm_3' => '', 'products_image_xl_3' => '', 'products_image_sm_4' => '', 'products_image_xl_4' => '', 'products_image_sm_5' => '', 'products_image_xl_5' => '', 'products_image_sm_6' => '', 'products_image_xl_6' => '', 'products_price' => '', 'products_weight' => '', 'products_date_added' => '', 'products_last_modified' => '', 'products_date_available' => '', 'products_status' => '', 'products_tax_class_id' => '', 'manufacturers_id' => '');
    $pInfo = new objectInfo($parameters);
    //HTC BOC and MaxiDVD: Modified For Ultimate Images Pack!
    if (isset($_GET['pID']) && !$_POST) {
        $product_query = tep_db_query("select pd.products_name, pd.products_description, pd.products_spec, pd.products_head_title_tag, pd.products_head_desc_tag, pd.products_head_keywords_tag, pd.products_url, p.products_id, p.products_quantity, p.products_model, p.products_image, p.products_image_med, p.products_image_lrg, p.products_image_sm_1, p.products_image_xl_1, p.products_image_sm_2, p.products_image_xl_2, p.products_image_sm_3, p.products_image_xl_3, p.products_image_sm_4, p.products_image_xl_4, p.products_image_sm_5, p.products_image_xl_5, p.products_image_sm_6, p.products_image_xl_6, p.products_price, p.products_weight, p.products_date_added, p.products_last_modified, date_format(p.products_date_available, '%Y-%m-%d') as products_date_available, p.products_status, p.products_tax_class_id, p.manufacturers_id from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = '" . (int) $_GET['pID'] . "' and p.products_id = pd.products_id and pd.language_id = '" . (int) $languages_id . "'");
        $product = tep_db_fetch_array($product_query);
        //HTC EOC
        $pInfo->objectInfo($product);
    } elseif (tep_not_null($_POST)) {
        $pInfo->objectInfo($_POST);
        $products_name = $_POST['products_name'];
        $products_description = $_POST['products_description'];
        $products_spec = $_POST['products_spec'];
        $products_url = $_POST['products_url'];
    }
    $manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE));
    $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
开发者ID:eosc,项目名称:EosC-2.3,代码行数:31,代码来源:categories.php


示例5: zen_draw_form

            </td>
            <td class="main">
<?php 
    // toggle switch for editor
    echo TEXT_EDITOR_INFO . zen_draw_form('set_editor_form', FILENAME_EZPAGES_ADMIN, '', 'get') . '&nbsp;&nbsp;' . zen_draw_pull_down_menu('reset_editor', $editors_pulldown, $current_editor_key, 'onChange="this.form.submit();"') . zen_hide_session_id() . zen_draw_hidden_field('action', 'set_editor') . '</form>';
}
?>
          </td>
          </tr>
        </table></td>
      </tr>
<?php 
if ($action == 'new') {
    $form_action = 'insert';
    $parameters = array('pages_title' => '', 'page_open_new_window' => '', 'page_is_ssl' => '', 'pages_html_text' => '', 'alt_url' => '', 'alt_url_external' => '', 'header_sort_order' => '', 'sidebox_sort_order' => '', 'footer_sort_order' => '', 'toc_sort_order' => '', 'toc_chapter' => '', 'status_header' => '', 'status_sidebox' => '', 'status_footer' => '', 'status_toc' => '', 'page_open_new_window' => '', 'page_is_ssl' => '');
    $ezInfo = new objectInfo($parameters);
    if (isset($_GET['ezID'])) {
        $form_action = 'update';
        $ezID = zen_db_prepare_input($_GET['ezID']);
        $page_query = "select * from " . TABLE_EZPAGES . " where pages_id = '" . $_GET['ezID'] . "'";
        $page = $db->Execute($page_query);
        $ezInfo->objectInfo($page->fields);
    } elseif (zen_not_null($_POST)) {
        $ezInfo->objectInfo($_POST);
    }
    // set all status settings and switches
    if (!isset($ezInfo->status_header)) {
        $ezInfo->status_header = '1';
    }
    switch ($ezInfo->status_header) {
        case '0':
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:ezpages.php


示例6: array

" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
?>
" cellspacing="0" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php 
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top">
<?php 
if ($action == 'edit' || $action == 'new') {
    $parameters = array('manufacturers_name' => '', 'manufacturers_description' => '', 'manufacturers_id' => '', 'manufacturers_image' => '', 'date_added' => '', 'last_modified' => '');
    $mInfo = new objectInfo($parameters);
    if (tep_not_null($HTTP_GET_VARS['mID']) && empty($HTTP_POST_VARS)) {
        $manufacturer_query = tep_db_query("select m.*, mi.* from " . TABLE_MANUFACTURERS . " m, " . TABLE_MANUFACTURERS_INFO . " mi where m.manufacturers_id = '" . (int) $HTTP_GET_VARS['mID'] . "' and m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int) $languages_id . "'");
        $manufacturer = tep_db_fetch_array($manufacturer_query);
        $mInfo->objectInfo($manufacturer);
    } elseif (tep_not_null($HTTP_POST_VARS)) {
        $mInfo->objectInfo($HTTP_POST_VARS);
        $manufacturers_name = array_map("stripslashes", $HTTP_POST_VARS['manufacturers_name']);
        $manufacturers_description = array_map("stripslashes", $HTTP_POST_VARS['manufacturers_description']);
    }
    $languages = tep_get_languages();
    $form_action = tep_not_null($HTTP_GET_VARS['mID']) ? 'save' : 'insert';
    echo tep_draw_form('manufacturers', FILENAME_MANUFACTURERS, tep_get_all_get_params(array('mID', 'action')) . (tep_not_null($HTTP_GET_VARS['mID']) ? '&mID=' . $HTTP_GET_VARS['mID'] : '') . '&action=' . $form_action, 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('manufacturers_id', $mInfo->manufacturers_id);
    ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:manufacturers.php


示例7: array

      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php 
echo HEADING_TITLE;
?>
</td>
            <td class="pageHeading" align="right">&nbsp;</td>
          </tr>
        </table></td>
      </tr>
<?php 
if ($action == 'new') {
    $form_action = 'insert';
    $parameters = array('title' => '', 'content' => '', 'module' => '');
    $nInfo = new objectInfo($parameters);
    if (isset($_GET['nID'])) {
        $form_action = 'update';
        $nID = tep_db_prepare_input($_GET['nID']);
        $newsletter_query = tep_db_query("select title, content, module from " . TABLE_NEWSLETTERS . " where newsletters_id = '" . (int) $nID . "'");
        $newsletter = tep_db_fetch_array($newsletter_query);
        $nInfo->objectInfo($newsletter);
    } elseif ($_POST) {
        $nInfo->objectInfo($_POST);
    }
    $file_extension = substr($PHP_SELF, strrpos($PHP_SELF, '.'));
    $directory_array = array();
    if ($dir = dir(DIR_WS_MODULES . 'newsletters/')) {
        while ($file = $dir->read()) {
            if (!is_dir(DIR_WS_MODULES . 'newsletters/' . $file)) {
                if (substr($file, strrpos($file, '.')) == $file_extension) {
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:newsletters.php


示例8: array

" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
?>
" cellspacing="0" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php 
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top">
<?php 
if ($action == 'edit_message' || $action == 'new_message') {
    $parameters = array('messages_name' => '', 'messages_description' => '', 'messages_id' => '', 'date_added' => '', 'last_modified' => '', 'status' => '', 'messages_pages' => array(), 'sort_order' => '');
    $mInfo = new objectInfo($parameters);
    if (isset($HTTP_GET_VARS['mID']) && empty($HTTP_POST_VARS)) {
        $message_query = tep_db_query("select * from " . TABLE_MESSAGES . " where messages_id = '" . (int) $HTTP_GET_VARS['mID'] . "'");
        $message = tep_db_fetch_array($message_query);
        $mInfo->objectInfo($message);
        if (tep_not_null($mInfo->messages_pages)) {
            $mInfo->messages_pages = explode("\n", $mInfo->messages_pages);
        } else {
            $mInfo->messages_pages = array();
        }
    } elseif (tep_not_null($HTTP_POST_VARS)) {
        $mInfo->objectInfo($HTTP_POST_VARS);
    }
    if (!isset($mInfo->status)) {
        $mInfo->status = '1';
    }
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:messages.php


示例9: zen_draw_separator

echo NEWS_BOX_HEADING_TITLE;
?>
</td>
                  <td class="pageHeading" align="right"><?php 
echo zen_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
                 </tr>
               </table>
			 </td>
           </tr>
           <?php 
if ($action == 'new') {
    $form_action = 'insert';
    $parameters = array('news_title' => '', 'news_content' => '', 'news_added_date' => '', 'news_modified_date' => '', 'news_start_date' => '', 'news_end_date' => '', 'more_news_page' => '');
    $nInfo = new objectInfo($parameters);
    if (isset($_GET['nID'])) {
        $form_action = 'update';
        $nID = zen_db_prepare_input($_GET['nID']);
        $news = $db->Execute("select nc.news_title, nc.news_content, n.more_news_page,\r\n                                         date_format(n.news_added_date, '%Y-%m-%d') as news_added_date,\r\n                                         date_format(n.news_modified_date, '%Y-%m-%d') as news_modified_date,\r\n                                         date_format(n.news_start_date, '%Y-%m-%d') as news_start_date,\r\n                                         date_format(n.news_end_date, '%Y-%m-%d') as news_end_date\r\n\t\t                               from " . TABLE_BOX_NEWS_CONTENT . " nc, " . TABLE_BOX_NEWS . " n \r\n\t\t                               where n.box_news_id = '" . (int) $nID . "'");
        $nInfo->objectInfo($news->fields);
    } elseif ($_POST) {
        $nInfo->objectInfo($_POST);
    }
    ?>
           <link rel="stylesheet" type="text/css" href="includes/javascript/spiffyCal/spiffyCal_v2_1.css">
           <script language="JavaScript" src="includes/javascript/spiffyCal/spiffyCal_v2_1.js"></script>
           <script language="javascript">
		   <!--
           var dateNewsStart = new ctlSpiffyCalendarBox("dateNewsStart", "news", "news_start_date","btnDate1","<?php 
    echo $nInfo->news_start_date;
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:news_box_manager.php


示例10: array

echo BOX_WIDTH;
?>
" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php 
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top">

<?php 
if ($action == 'new_page') {
    $parameters = array('pages_name' => '', 'pages_title' => '', 'pages_body' => '', 'pages_id' => '', 'pages_image' => '', 'pages_status' => '', 'sort_order' => '');
    $pInfo = new objectInfo($parameters);
    if (isset($_GET['pID']) && empty($_POST)) {
        $page_query = tep_db_query("select pd.pages_title, pd.pages_body, p.pages_id, p.pages_name, p.pages_image, p.pages_status, p.sort_order from " . TABLE_PAGES . " p, " . TABLE_PAGES_DESCRIPTION . " pd where p.pages_id = '" . (int) $_GET['pID'] . "' and p.pages_id = pd.pages_id and pd.language_id = '" . (int) $languages_id . "'");
        $page = tep_db_fetch_array($page_query);
        $pInfo->objectInfo($page);
    } elseif (tep_not_null($_POST)) {
        $pInfo->objectInfo($_POST);
        $pages_name = $_POST['pages_name'];
        $pages_title = $_POST['pages_title'];
        $pages_body = $_POST['pages_body'];
    }
    $languages = tep_get_languages();
    if (!isset($pInfo->pages_status)) {
        $pInfo->pages_status = '1';
    }
    switch ($pInfo->pages_status) {
开发者ID:eosc,项目名称:EosC-2.3,代码行数:31,代码来源:pages.php


示例11: array

" valign="top"><table border="0" width="<?php 
echo BOX_WIDTH;
?>
" cellspacing="1" cellpadding="1" class="columnLeft">
<!-- left_navigation //-->
<?php 
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top">
<?php 
if ($action == 'new_news') {
    $parameters = array('news_title' => '', 'source' => '', 'sort_order' => '', 'news_categories_id' => '', 'date_added' => '', 'news_content' => '', 'news_status' => '', 'icon' => '');
    $nInfo = new objectInfo($parameters);
    if (isset($HTTP_GET_VARS['nID']) && empty($HTTP_POST_VARS)) {
        $news_query = tep_db_query("select n.news_id, n.news_title, n.news_content, n.source, n.icon, n.sort_order, n.news_categories_id, n.news_status, n.date_added from " . TABLE_NEWS . " n where n.news_id = '" . (int) $HTTP_GET_VARS['nID'] . "'");
        $news = tep_db_fetch_array($news_query);
        $nInfo->objectInfo($news);
    } elseif (tep_not_null($HTTP_POST_VARS)) {
        $nInfo->objectInfo($HTTP_POST_VARS);
        //      $products_name = $HTTP_POST_VARS['products_name'];
        //      $products_description = $HTTP_POST_VARS['products_description'];
        //      $products_url = $HTTP_POST_VARS['products_url'];
        //	  $news_title = $HTTP_POST_VARS['news_title'];
        //	  $news_content = $HTTP_POST_VARS['news_content'];
        //	  $news_icon_name = $HTTP_POST_VARS['icon'];
    }
    if (!isset($nInfo->news_status)) {
        $nInfo->news_status = '1';
开发者ID:quangbt2005,项目名称:belamdep,代码行数:31,代码来源:news.php


示例12: die

<?php

/**
 * @package admin
 * @copyright Copyright 2003-2016 Zen Cart Development Team
 * @copyright Portions Copyright 2003 osCommerce
 * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
 * @version $Id: Author: DrByte  Sun Oct 18 02:03:48 2015 -0400 Modified in v1.5.5 $
 */
if (!defined('IS_ADMIN_FLAG')) {
    die('Illegal Access');
}
$parameters = array('products_name' => '', 'products_description' => '', 'products_url' => '', 'products_id' => '', 'products_quantity' => '', 'products_model' => '', 'products_image' => '', 'products_price' => '', 'products_price_w' => '', 'products_virtual' => DEFAULT_PRODUCT_PRODUCTS_VIRTUAL, 'products_weight' => '', 'products_date_added' => '', 'products_last_modified' => '', 'products_date_available' => '', 'products_status' => '', 'products_tax_class_id' => DEFAULT_PRODUCT_TAX_CLASS_ID, 'manufacturers_id' => '', 'products_quantity_order_min' => '', 'products_quantity_order_units' => '', 'products_priced_by_attribute' => '', 'product_is_free' => '', 'product_is_call' => '', 'products_quantity_mixed' => '', 'product_is_always_free_shipping' => DEFAULT_PRODUCT_PRODUCTS_IS_ALWAYS_FREE_SHIPPING, 'products_qty_box_status' => PRODUCTS_QTY_BOX_STATUS, 'products_quantity_order_max' => '0', 'products_sort_order' => '0', 'products_discount_type' => '0', 'products_discount_type_from' => '0', 'products_price_sorter' => '0', 'master_categories_id' => '');
$pInfo = new objectInfo($parameters);
if (isset($_GET['pID']) && empty($_POST)) {
    $product = $db->Execute("select pd.products_name, pd.products_description, pd.products_url,\n                                      p.products_id, p.products_quantity, p.products_model,\n/* Dual Pricing start */\n                                      p.products_image, p.products_price, p.products_price_w, p.products_virtual, p.products_weight,\n/* Dual Pricing end */\n                                      p.products_date_added, p.products_last_modified,\n                                      date_format(p.products_date_available, '%Y-%m-%d') as\n                                      products_date_available, p.products_status, p.products_tax_class_id,\n                                      p.manufacturers_id,\n                                      p.products_quantity_order_min, p.products_quantity_order_units, p.products_priced_by_attribute,\n                                      p.product_is_free, p.product_is_call, p.products_quantity_mixed,\n                                      p.product_is_always_free_shipping, p.products_qty_box_status, p.products_quantity_order_max,\n                                      p.products_sort_order,\n                                      p.products_discount_type, p.products_discount_type_from,\n                                      p.products_price_sorter, p.master_categories_id\n                              from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd\n                              where p.products_id = '" . (int) $_GET['pID'] . "'\n                              and p.products_id = pd.products_id\n                              and pd.language_id = '" . (int) $_SESSION['languages_id'] . "'");
    $pInfo->updateObjectInfo($product->fields);
} elseif (zen_not_null($_POST)) {
    $pInfo->updateObjectInfo($_POST);
    $products_name = $_POST['products_name'];
    $products_description = $_POST['products_description'];
    $products_url = $_POST['products_url'];
}
$category_lookup = $db->Execute("select *\n                              from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd\n                              where c.categories_id ='" . (int) $current_category_id . "'\n                              and c.categories_id = cd.categories_id\n                              and cd.language_id = '" . (int) $_SESSION['languages_id'] . "'");
if (!$category_lookup->EOF) {
    $cInfo = new objectInfo($category_lookup->fields);
} else {
    $cInfo = new objectInfo(array());
}
$manufacturers_array = array(array('id' => '', 'text' => TEXT_NONE));
$manufacturers = $db->Execute("select manufacturers_id, manufacturers_name\n                                   from " . TABLE_MANUFACTURERS . " order by manufacturers_name");
开发者ID:jeking928,项目名称:Dual-Pricing-2.1.6,代码行数:31,代码来源:collect_info.php


示例13: array

<!-- left_navigation //-->
<?php 
require DIR_WS_INCLUDES . 'column_left.php';
?>
<!-- left_navigation_eof //-->
    </table></td>
<!-- body_text //-->
    <td width="100%" valign="top">
<?php 
if ($action == 'new_block' || $action == 'edit_block') {
    $parameters = array();
    $query = tep_db_query("describe " . TABLE_BLOCKS);
    while ($row = tep_db_fetch_array($query)) {
        $parameters[$row['Field']] == (tep_not_null($row['Default']) ? $row['Default'] : '');
    }
    $bInfo = new objectInfo($parameters);
    if (isset($HTTP_GET_VARS['bID']) && empty($HTTP_POST_VARS)) {
        if ($tPath == '0') {
            $block_query = tep_db_query("select * from " . TABLE_BLOCKS . " where blocks_id = '" . (int) $HTTP_GET_VARS['bID'] . "' and language_id = '" . (int) $languages_id . "'");
        } else {
            $block_query = tep_db_query("select b.*, if (bt.blocks_types_field='textarea_text', b.blocks_description, b.blocks_description_short) as blocks_description from " . TABLE_BLOCKS . " b, " . TABLE_BLOCKS_TYPES . " bt where b.blocks_id = '" . (int) $HTTP_GET_VARS['bID'] . "' and b.blocks_types_id = bt.blocks_types_id and b.language_id = bt.language_id and b.language_id = '" . (int) $languages_id . "'");
        }
        $block = tep_db_fetch_array($block_query);
        $block['templates'] = array();
        $templates = array();
        $templates_query = tep_db_query("select distinct templates_id from " . TABLE_TEMPLATES_TO_BLOCKS . " where blocks_id = '" . (int) $block['blocks_id'] . "'");
        while ($templates_array = tep_db_fetch_array($templates_query)) {
            $block['templates'][] = $templates_array['templates_id'];
        }
        $bInfo->objectInfo($block);
    } elseif (tep_not_null($HTTP_POST_VARS)) {
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:blocks.php


示例14: tep_draw_separator

?>
</td>
            		<td class="pageHeading" align="right"><?php 
echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
          		</tr>
        	</table>
		</td>
	</tr>
<?php 
//uncommment 'new newsletter' button below to activate
if ($action == 'new') {
    $form_action = 'insert';
    $parameters = array('title' => $title, 'htmlcontent' => $htmlcontent, 'txtcontent' => $txtcontent, 'template' => $template);
    $nInfo = new objectInfo($parameters);
    if (isset($HTTP_GET_VARS['nID'])) {
        $form_action = 'update';
        $nID = tep_db_prepare_input($HTTP_GET_VARS['nID']);
        $mail_query = tep_db_query("select title, htmlcontent, txtcontent, placeholders, template, status from " . TABLE_MM_RESPONSEMAIL . " where mail_id = '" . (int) $nID . "'");
        $mail = tep_db_fetch_array($mail_query);
        $placeholders = $mail['placeholders'];
        $template_title = $mail['template'];
        $nInfo->objectInfo($mail);
    } elseif ($HTTP_POST_VARS) {
        $nInfo->objectInfo($HTTP_POST_VARS);
    }
    ?>

	<tr>
		<td><?php 
开发者ID:othreed,项目名称:osCommerce-234-bootstrap-wADDONS,代码行数:31,代码来源:mm_responsemail.php


示例15: Header

$menuType = "registration";
?>
<div class="content-wrapper">
        <!-- Content Header (Page header) -->
        <section class="content-header">
          <h1>
            Student Registration
          </h1>
        </section>

        <!-- Main content -->
        <section class="content">
          <div class="row">
<?php 
$registrationInfo = new dataInfo();
$objectInfoData = new objectInfo();
$classData = $objectInfoData->getClass();
$subjectData = $objectInfoData->getSubject();
if (isset($_REQUEST['studentId'])) {
    $registrationData = $registrationInfo->getDataById("studentregistration", "studentId", $_REQUEST['studentId']);
    $edit = true;
}
?>
            <div class="col-md-12">
              <div class="nav-tabs-custom">       
                <div class="tab-content">
                  <div id="settings" class="tab-pane active">
                    <form class="form-horizontal" method="post" action="<?php 
echo $_SERVER['REQUEST_URI'];
?>
">
开发者ID:beltechnology,项目名称:pof,代码行数:31,代码来源:registration.php


示例16: tep_create_safe_string

        }
        $template_array = $g_db->fetch_array($template_query);
        $filename = tep_create_safe_string(strtolower($template_array['template_title']), '-') . '.html';
        header('Content-type: application/x-octet-stream');
        header('Content-disposition: attachment; filename=' . $filename);
        echo $template_array['template_content'];
        $g_session->close();
        break;
    default:
        break;
}
require DIR_FS_OBJECTS . 'html_start_sub1.php';
require DIR_FS_OBJECTS . 'html_start_sub2.php';
if ($action == 'new_template') {
    $parameters = array('template_id' => '', 'group_id' => TEMPLATE_SYSTEM_GROUP, 'template_title' => '', 'template_subject' => '', 'template_content' => $template_content);
    $tInfo = new objectInfo($parameters);
    $groups_query = "select group_id as id, group_title as text from " . TABLE_TEMPLATES_GROUPS . " order by group_title";
    $groups_array = $g_db->query_to_array($groups_query);
    if (!empty($tID)) {
        $template_query = $g_db->query("select template_id, group_id, template_title, template_subject, template_content from " . TABLE_TEMPLATES . " where template_id = '" . (int) $tID . "'");
        $template = $g_db->fetch_array($template_query);
        $tInfo->objectInfo($template, false);
        if (!empty($template_content)) {
            $tInfo->template_content = $template_content;
        }
    }
    if (!empty($tID)) {
        $form_action = 'tID=' . $tID . '&action=template_upload';
    } else {
        $form_action = 'action=template_upload';
    }
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:31,代码来源:templates.php


示例17: tep_draw_separator

            <td class="pageHeading"><?php 
echo HEADING_TITLE;
?>
</td>
            <td class="pageHeading" align="right"><?php 
echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
          </tr>
        </table></td>
      </tr>
<?php 
if ($action == 'new') {
    $form_action = 'insert';
    $parameters = array('expires_date' => '', 'date_scheduled' => '', 'banners_title' => '', 'banners_url' => '', 'banners_group' => '', 'banners_image' => '', 'banners_html_text' => '', 'expires_impressions' => '');
    $bInfo = new objectInfo($parameters);
    if (isset($HTTP_GET_VARS['bID'])) {
        $form_action = 'update';
        $bID = tep_db_prepare_input($HTTP_GET_VARS['bID']);
        $banner_query = tep_db_query("select banners_title, banners_url, banners_image, banners_group, banners_html_text, status, date_format(date_scheduled, '%d/%m/%Y') as date_scheduled, date_format(expires_date, '%d/%m/%Y') as expires_date, expires_impressions, date_status_change from " . TABLE_BANNERS . " where banners_id = '" . (int) $bID . "'");
        $banner = tep_db_fetch_array($banner_query);
        $bInfo->objectInfo($banner);
    } elseif (tep_not_null($HTTP_POST_VARS)) {
        $bInfo->objectInfo($HTTP_POST_VARS);
    }
    $groups_array = array();
    $groups_query = tep_db_query("select distinct banners_group from " . TABLE_BANNERS . " order by banners_group");
    while ($groups = tep_db_fetch_array($groups_query)) {
        $groups_array[] = array('id' => $groups['banners_group'], 'text' => $groups['banners_group']);
    }
    ?>
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:banner_manager.php


示例18: foreach

     // EOF QPBPP for SPPC
 } else {
     // LINE MODED: Separate Pricing Per Customer adapted for QPBPP for SPPC v4.2
     // LINE MODED: Open Feature Sets : Added ", pd.products_short"
     //      $product_query = tep_db_query("select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_short, pd.tab1, pd.tab2, pd.tab3, pd.tab4, pd.tab5, pd.tab6, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_price, p.products_weight, p.products_length, p.products_width, p.products_height, p.products_ready_to_ship, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.manufacturers_id, p.products_qty_blocks, p.products_min_order_qty  from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int)$_GET['pID'] . "'");
     // BOF: Extra Product Fields
     // LINE MODED: MSRP: Added "p.products_msrp,"
     $query = "select p.products_id, pd.language_id, pd.products_name, pd.products_description, pd.products_short, pd.tab1, pd.tab2, pd.tab3, pd.tab4, pd.tab5, pd.tab6, pd.products_url, p.products_quantity, p.products_model, p.products_image, p.products_msrp, p.products_price, p.products_weight, p.products_length, p.products_width, p.products_height, p.products_ready_to_ship, p.products_date_added, p.products_last_modified, p.products_date_available, p.products_status, p.products_ship_sep, p.manufacturers_id,  p.products_qty_blocks, p.products_min_order_qty ";
     foreach ($xfields as $f) {
         $query .= ', pd.' . $f;
     }
     $query .= " from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_id = pd.products_id and p.products_id = '" . (int) $_GET['pID'] . "'";
     $product_query = tep_db_query($query);
     // EOF: Extra Product Fields
     $product = tep_db_fetch_array($product_query);
     $pInfo = new objectInfo($product);
     $products_image_name = $pInfo->products_image;
     // move retail settings for quantity bloc 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP objectWrapperBase类代码示例发布时间:2022-05-23
下一篇:
PHP object类代码示例发布时间: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