当前位置: 首页>>代码示例>>PHP>>正文


PHP smn_draw_input_field函数代码示例

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


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

示例1: selection

 function selection()
 {
     global $order;
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_OWNER, 'field' => smn_draw_input_field('ipayment_cc_owner', $order->billing['firstname'] . ' ' . $order->billing['lastname'])), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('ipayment_cc_number')), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('ipayment_cc_expires_month', $expires_month) . '&nbsp;' . smn_draw_pull_down_menu('ipayment_cc_expires_year', $expires_year)), array('title' => MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER, 'field' => smn_draw_input_field('ipayment_cc_checkcode', '', 'size="4" maxlength="3"') . '&nbsp;<small>' . MODULE_PAYMENT_IPAYMENT_TEXT_CREDIT_CARD_CHECKNUMBER_LOCATION . '</small>')));
     return $selection;
 }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:13,代码来源:ipayment.php

示例2: credit_selection

 function credit_selection()
 {
     global $customer_id, $currencies, $language;
     $selection_string = '';
     $selection_string .= '' . "\n";
     $selection_string .= ' </tr><tr><td class="main">' . "\n";
     $selection_string .= TEXT_ENTER_GV_CODE . smn_draw_input_field('gv_redeem_code') . ' and click ';
     $image_submit = '<input type="image" name="submit_redeem" onClick="return check_form(), submitFunction()" ' . smn_image_button('button_redeem.gif', IMAGE_REDEEM_VOUCHER);
     $selection_string .= '';
     $selection_string .= '' . $image_submit . '</td>';
     $selection_string .= '';
     $selection_string .= '' . "\n";
     return $selection_string;
 }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:14,代码来源:ot_coupon.php

示例3: selection

 function selection()
 {
     global $order;
     // -- Generates an array containing the text names of each month of the year.
     for ($i = 1; $i < 13; $i++) {
         $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
     }
     // -- Generates an array containing this year and the next nine years.
     $today = getdate();
     for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
         $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('surepay_cc_number')), array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_CVV2, 'field' => smn_draw_input_field('surepay_cc_cvv2')), array('title' => MODULE_PAYMENT_SUREPAY_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('surepay_cc_expires_month', $expires_month) . '&nbsp;' . smn_draw_pull_down_menu('surepay_cc_expires_year', $expires_year))));
     return $selection;
 }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:15,代码来源:surepay.php

示例4: selection

 function selection()
 {
     global $order;
     if (MODULE_PAYMENT_PSIGATE_INPUT_MODE == 'Local') {
         for ($i = 1; $i < 13; $i++) {
             $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
         }
         $today = getdate();
         for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
             $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
         }
         $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_OWNER, 'field' => $order->billing['firstname'] . ' ' . $order->billing['lastname']), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_NUMBER, 'field' => smn_draw_input_field('psigate_cc_number')), array('title' => MODULE_PAYMENT_PSIGATE_TEXT_CREDIT_CARD_EXPIRES, 'field' => smn_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . '&nbsp;' . smn_draw_pull_down_menu('psigate_cc_expires_year', $expires_year))));
     } else {
         $selection = array('id' => $this->code, 'module' => $this->title);
     }
     return $selection;
 }
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:17,代码来源:psigate.php

示例5: Copyright

<?php

/*
  Copyright (c) 2002 - 2006 SystemsManager.Net
  SystemsManager Technologies
  oscMall System Version 4
  http://www.systemsmanager.net
  
  Portions Copyright (c) 2002 osCommerce
  
  This source file is subject to version 2.0 of the GPL license,   
  that is bundled with this package in the file LICENSE. If you
  did not receive a copy of the oscMall System license and are unable 
  to obtain it through the world-wide-web, please send a note to    
  license@systemsmanager.net so we can mail you a copy immediately.
*/
$boxHeading = BOX_HEADING_SEARCH;
$box_base_name = 'search';
$box_id = $box_base_name . 'Box';
$boxContent = smn_draw_form('quick_find', smn_href_link(FILENAME_ADVANCED_SEARCH_RESULT, 'ID=1', 'NONSSL', false), 'get');
$boxContent .= smn_draw_hidden_field('search_in_description', '1') . smn_draw_input_field('keywords', '', 'size="10" maxlength="30" ') . '&nbsp;' . smn_hide_session_id() . smn_image_submit('button_quick_find.gif', BOX_HEADING_SEARCH) . '<br>' . BOX_SEARCH_TEXT . '<br><a href="' . smn_href_link(FILENAME_ADVANCED_SEARCH) . '"><b>' . BOX_SEARCH_ADVANCED_SEARCH . '</b></a>';
$boxContent .= '</form>';
if (file_exists(DIR_WS_BOX_TEMPLATES . $box_base_name . '.php')) {
    require DIR_WS_BOX_TEMPLATES . $box_base_name . '.php';
} else {
    require DEFAULT_TEMPLATENAME_BOX;
}
$boxContent_attributes = '';
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:28,代码来源:search_bk.php

示例6: smn_draw_separator

echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
              </tr>
              <tr>
                <td class="fieldKey"><?php 
echo ENTRY_DATE_FROM;
?>
</td>
                <td class="fieldValue"><?php 
echo smn_draw_input_field('dfrom', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"');
?>
</td>
              </tr>
              <tr>
                <td class="fieldKey"><?php 
echo ENTRY_DATE_TO;
?>
</td>
                <td class="fieldValue"><?php 
echo smn_draw_input_field('dto', DOB_FORMAT_STRING, 'onFocus="RemoveFormatString(this, \'' . DOB_FORMAT_STRING . '\')"');
?>
</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table></form>
<!-- search_eof //-->
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:30,代码来源:search2.php

示例7: switch

} else {
    switch ($action) {
        case 'new_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_ZONE . '</b>');
            $contents = array('form' => smn_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID'] . '&action=insert_zone'));
            $contents[] = array('text' => TEXT_INFO_NEW_ZONE_INTRO);
            $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_NAME . '<br>' . smn_draw_input_field('geo_zone_name'));
            $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_DESCRIPTION . '<br>' . smn_draw_input_field('geo_zone_description'));
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $_GET['zID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        case 'edit_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_ZONE . '</b>');
            $contents = array('form' => smn_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=save_zone'));
            $contents[] = array('text' => TEXT_INFO_EDIT_ZONE_INTRO);
            $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_NAME . '<br>' . smn_draw_input_field('geo_zone_name', $zInfo->geo_zone_name));
            $contents[] = array('text' => '<br>' . TEXT_INFO_ZONE_DESCRIPTION . '<br>' . smn_draw_input_field('geo_zone_description', $zInfo->geo_zone_description));
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        case 'delete_zone':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_ZONE . '</b>');
            $contents = array('form' => smn_draw_form('zones', FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=deleteconfirm_zone'));
            $contents[] = array('text' => TEXT_INFO_DELETE_ZONE_INTRO);
            $contents[] = array('text' => '<br><b>' . $zInfo->geo_zone_name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($zInfo) && is_object($zInfo)) {
                $heading[] = array('text' => '<b>' . $zInfo->geo_zone_name . '</b>');
                $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=edit_zone') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=delete_zone') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' . ' <a href="' . smn_href_link(FILENAME_GEO_ZONES, 'zpage=' . $_GET['zpage'] . '&zID=' . $zInfo->geo_zone_id . '&action=list') . '">' . smn_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
                $contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_ZONES . ' ' . $zInfo->num_zones);
                $contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . smn_date_short($zInfo->date_added));
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:geo_zones.php

示例8: smn_get_languages

     $category_inputs_string = '';
     $category_description_input_string = '';
     $languages = smn_get_languages();
     for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
         $category_inputs_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . smn_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', smn_get_category_name($cInfo->categories_id, $languages[$i]['id']));
         //$category_description_input_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES .  'images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . smn_draw_input_field('categories_description[' . $languages[$i]['id'] . ']', smn_get_category_description($cInfo->categories_id, $languages[$i]['id']));
         $category_description_input_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;<br><textarea name="categories_description[' . $languages[$i]['id'] . ']" wrap="physical" cols="28" rows="5" onKeyDown="textCounter(this,document.categories.remLen2,125)" onKeyUp="textCounter(this,document.categories.remLen2,125)" value="' . $cInfo->categories_id . '">' . smn_get_category_description($cInfo->categories_id, $languages[$i]['id']) . '</textarea>' . '<br><input readonly type="text" name="remLen2" size="3" maxlength="3" value="125">characters left<br>';
     }
     $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
     $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_DESCRIPTION . $category_description_input_string);
     $contents[] = array('text' => '<br>' . smn_image(DIR_WS_CATALOG_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br>' . DIR_WS_CATALOG_IMAGES . '<br><b>' . $cInfo->categories_image . '</b>');
     $contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_IMAGE . '<br>' . smn_draw_file_field('categories_image'));
     $contents[] = array('text' => '<br>' . TEXT_EDIT_SORT_ORDER . '<br>' . smn_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
     $contents[] = array('text' => '<br>' . TEXT_CATEGORY_PAGE_TITLE . '<br>' . smn_draw_input_field('htc_title', $cInfo->category_head_title_tag, 'size="30"'));
     $contents[] = array('text' => '<br>' . TEXT_CATEGORY_HEADER_DESCRIPTION . '<br>' . smn_draw_input_field('htc_desc', $cInfo->category_head_desc_tag, 'size="30"'));
     $contents[] = array('text' => '<br>' . TEXT_CATEGORY_KEYWORDS . '<br>' . smn_draw_input_field('htc_keywords', $cInfo->category_head_keywords_tag, 'size="30"'));
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_category':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CATEGORY . '</b>');
     $contents = array('form' => smn_draw_form('categories', FILENAME_CATEGORIES, 'action=delete_category_confirm&cPath=' . $cPath) . smn_draw_hidden_field('categories_id', $cInfo->categories_id));
     $contents[] = array('text' => TEXT_DELETE_CATEGORY_INTRO);
     $contents[] = array('text' => '<br><b>' . $cInfo->categories_name . '</b>');
     if ($cInfo->childs_count > 0) {
         $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_CHILDS, $cInfo->childs_count));
     }
     if ($cInfo->products_count > 0) {
         $contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $cInfo->products_count));
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:categories.php

示例9: smn_draw_input_field

    echo ENTRY_EMAIL;
    ?>
<br><?php 
    echo smn_draw_input_field('email', $_POST['email']);
    if ($error) {
        echo $error_email;
    }
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo ENTRY_AMOUNT;
    ?>
<br><?php 
    echo smn_draw_input_field('amount', $_POST['amount'], '', '', false);
    if ($error) {
        echo $error_amount;
    }
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo ENTRY_MESSAGE;
    ?>
<br><?php 
    echo smn_draw_textarea_field('message', 'soft', 50, 15, stripslashes($_POST['message']));
    ?>
</td>
          </tr>
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:gv_send.php

示例10: smn_draw_separator

    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_NEWSLETTER_TITLE;
    ?>
</td>
            <td class="main"><?php 
    echo smn_draw_input_field('title', $nInfo->title, '', true);
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td td colspan="2 class="main" valign="top"><?php 
    echo TEXT_NEWSLETTER_CONTENT;
    ?>
</td>
          </tr>
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:newsletters.php

示例11: smn_draw_separator

    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
    echo TEXT_SUBJECT;
    ?>
</td>
                <td><?php 
    echo smn_draw_input_field('subject');
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo smn_draw_separator('pixel_trans.gif', '1', '10');
    ?>
</td>
              </tr>
              <tr>
                <td valign="top" class="main"><?php 
    echo TEXT_MESSAGE;
    ?>
</td>
                <td><?php 
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:mail.php

示例12: array

     }
     break;
 case 'show_group':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_GROUP . '</b>');
     $check_email_query = smn_db_query("select admin_email_address from " . TABLE_ADMIN . "");
     //$stored_email[];
     while ($check_email = smn_db_fetch_array($check_email_query)) {
         $stored_email[] = $check_email['admin_email_address'];
     }
     if (in_array($_POST['admin_email_address'], $stored_email)) {
         $checkEmail = "true";
     } else {
         $checkEmail = "false";
     }
     $contents = array('form' => smn_draw_form('show_group', FILENAME_ADMIN_MEMBERS, 'action=show_group&gID=groups', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => $define_files['admin_files_name'] . smn_draw_input_field('level_edit', $checkEmail));
     //$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'gID=' . $gInfo->admin_groups_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($mInfo)) {
         $heading[] = array('text' => '<b>&nbsp;' . TEXT_INFO_HEADING_DEFAULT . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id . '&action=edit_member') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_ADMIN_MEMBERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id . '&action=del_member') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a><br>&nbsp;');
         $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_FULLNAME . '</b><br>&nbsp;' . $mInfo->admin_firstname . ' ' . $mInfo->admin_lastname);
         $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_EMAIL . '</b><br>&nbsp;' . $mInfo->admin_email_address);
         $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_GROUP . '</b>' . $mInfo->admin_groups_name);
         $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_CREATED . '</b><br>&nbsp;' . $mInfo->admin_created);
         $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_MODIFIED . '</b><br>&nbsp;' . $mInfo->admin_modified);
         $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_LOGDATE . '</b><br>&nbsp;' . $mInfo->admin_logdate);
         $contents[] = array('text' => '&nbsp;<b>' . TEXT_INFO_LOGNUM . '</b>' . $mInfo->admin_lognum);
         $contents[] = array('text' => '<br>');
     } elseif (is_object($gInfo)) {
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:admin_members.php

示例13: smn_check_stock

        if (STOCK_CHECK == 'true') {
            $stock_check = smn_check_stock($products[$i]['id'], $products[$i]['quantity']);
            if (smn_not_null($stock_check)) {
                $any_out_of_stock = 1;
                $products_name .= $stock_check;
            }
        }
        if (isset($products[$i]['attributes']) && is_array($products[$i]['attributes'])) {
            reset($products[$i]['attributes']);
            while (list($option, $value) = each($products[$i]['attributes'])) {
                $products_name .= '<br><small><i> - ' . $products[$i][$option]['products_options_name'] . ' ' . $products[$i][$option]['products_options_values_name'] . '</i></small>';
            }
        }
        $products_name .= '    </td>' . '  </tr>' . '</table>';
        $info_box_contents[$cur_row][] = array('params' => 'class="productListing-data"', 'text' => $products_name);
        $info_box_contents[$cur_row][] = array('align' => 'center', 'params' => 'class="productListing-data" valign="top"', 'text' => smn_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . smn_draw_hidden_field('products_id[]', $products[$i]['id']));
        $info_box_contents[$cur_row][] = array('align' => 'right', 'params' => 'class="productListing-data" valign="top"', 'text' => '<b>' . $currencies->display_price($products[$i]['final_price'], smn_get_tax_rate($products[$i]['tax_class_id']), $products[$i]['quantity']) . '</b>');
    }
    new productListingBox($info_box_contents);
    ?>
        </td>
      </tr>
      <tr>
        <td><?php 
    echo smn_draw_separator('pixel_trans.gif', '100%', '10');
    ?>
</td>
      </tr>
      <tr>
        <td align="right" class="main"><b><?php 
    echo SUB_TITLE_SUB_TOTAL;
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:shopping_cart.php

示例14: smn_draw_separator

echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
  </tr>
  <tr>
   <td class="main"><?php 
echo TEXT_PRODUCTS_MANUFACTURER;
?>
</td>
   <td><?php 
echo smn_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . smn_draw_pull_down_menu('manufacturers_id', $manufacturers_array, $pInfo->manufacturers_id);
?>
</td>
  </tr>
  <tr>
   <td class="main"><?php 
echo TEXT_PRODUCTS_WEIGHT;
?>
</td>
   <td><?php 
echo smn_draw_separator('pixel_trans.gif', '24', '15') . '&nbsp;' . smn_draw_input_field('products_weight', $pInfo->products_weight);
?>
</td>
  </tr>
  <tr>
   <td colspan="2"><?php 
echo smn_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
  </tr>
 </table>
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:tab_name.php

示例15: array

 case 'new':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_LANGUAGE . '</b>');
     $contents = array('form' => smn_draw_form('languages', FILENAME_LANGUAGES, 'action=insert'));
     $contents[] = array('text' => smn_draw_pull_down_menu('new_language_id', smn_language_list()));
     $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $_GET['lID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</b>');
     $contents = array('form' => smn_draw_form('languages', FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=save'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . smn_draw_input_field('name', $lInfo->name));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . smn_draw_input_field('code', $lInfo->code));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . smn_draw_input_field('image', $lInfo->image));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_DIRECTORY . '<br>' . smn_draw_input_field('directory', $lInfo->directory));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . smn_draw_input_field('sort_order', $lInfo->sort_order));
     if (DEFAULT_LANGUAGE != $lInfo->code) {
         $contents[] = array('text' => '<br>' . smn_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</b>');
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br><b>' . $lInfo->name . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_language ? '<a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($lInfo)) {
         $heading[] = array('text' => '<b>' . $lInfo->name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_LANGUAGES, 'page=' . $_GET['page'] . '&lID=' . $lInfo->languages_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_DEFINE_LANGUAGE, 'lngdir=' . $lInfo->directory) . '">' . smn_image_button('button_details.gif', IMAGE_DETAILS) . '</a>');
开发者ID:stanislauslive,项目名称:StanMarket,代码行数:31,代码来源:languages.php


注:本文中的smn_draw_input_field函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。