本文整理汇总了PHP中smn_draw_checkbox_field函数的典型用法代码示例。如果您正苦于以下问题:PHP smn_draw_checkbox_field函数的具体用法?PHP smn_draw_checkbox_field怎么用?PHP smn_draw_checkbox_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了smn_draw_checkbox_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$heading = array();
$contents = array();
switch ($action) {
case 'backup':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_BACKUP . '</b>');
$contents = array('form' => smn_draw_form('backup', FILENAME_BACKUP, 'action=backupnow'));
$contents[] = array('text' => TEXT_INFO_NEW_BACKUP);
$contents[] = array('text' => '<br>' . smn_draw_radio_field('compress', 'no', true) . ' ' . TEXT_INFO_USE_NO_COMPRESSION);
if (file_exists(LOCAL_EXE_GZIP)) {
$contents[] = array('text' => '<br>' . smn_draw_radio_field('compress', 'gzip') . ' ' . TEXT_INFO_USE_GZIP);
}
if (file_exists(LOCAL_EXE_ZIP)) {
$contents[] = array('text' => smn_draw_radio_field('compress', 'zip') . ' ' . TEXT_INFO_USE_ZIP);
}
if ($dir_ok == true) {
$contents[] = array('text' => '<br>' . smn_draw_checkbox_field('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
} else {
$contents[] = array('text' => '<br>' . smn_draw_radio_field('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
}
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_backup.gif', IMAGE_BACKUP) . ' <a href="' . smn_href_link(FILENAME_BACKUP) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'restore':
$heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
$contents[] = array('text' => smn_break_string(sprintf(TEXT_INFO_RESTORE, DIR_FS_BACKUP . ($buInfo->compression != TEXT_NO_EXTENSION ? substr($buInfo->file, 0, strrpos($buInfo->file, '.')) : $buInfo->file), $buInfo->compression != TEXT_NO_EXTENSION ? TEXT_INFO_UNPACK : ''), 35, ' '));
$contents[] = array('align' => 'center', 'text' => '<br><a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . smn_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . smn_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'restorelocal':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
$contents = array('form' => smn_draw_form('restore', FILENAME_BACKUP, 'action=restorelocalnow', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL . '<br><br>' . TEXT_INFO_BEST_THROUGH_HTTPS);
$contents[] = array('text' => '<br>' . smn_draw_file_field('sql_file'));
示例2: smn_draw_checkbox_field
<td class="main"><b><?php
echo CATEGORY_OPTIONS;
?>
</b></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" cellspacing="2" cellpadding="2">
<tr>
<td class="main"><?php
echo ENTRY_NEWSLETTER;
?>
</td>
<td class="main"><?php
echo smn_draw_checkbox_field('newsletter', '1') . ' ' . (smn_not_null(ENTRY_NEWSLETTER_TEXT) ? '<span class="inputRequirement">' . ENTRY_NEWSLETTER_TEXT . '</span>' : '');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td class="main"><b><?php
示例3: smn_draw_pull_down_menu
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"><b><?php
echo PAYMENT_STATUS;
?>
</b> <?php
echo smn_draw_pull_down_menu('status', $payments_statuses, $payments['affiliate_payment_status']);
?>
</td>
</tr>
<tr>
<td class="main"><b><?php
echo PAYMENT_NOTIFY_AFFILIATE;
?>
</b><?php
echo smn_draw_checkbox_field('notify', '', true);
?>
</td>
</tr>
</table></td>
<td valign="top"><?php
echo smn_image_submit('button_update.gif', IMAGE_UPDATE);
?>
</td>
</tr>
</table></td>
</form></tr>
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '1', '10');
示例4: implode
$checkedBox = $selectedGroups;
$uncheckedBox = implode(",", $result);
$checked = true;
} else {
$add_boxes = array($_GET['gPath']);
$result = array_merge($add_boxes, $groupsArray);
sort($result);
$checkedBox = implode(",", $result);
$uncheckedBox = $selectedGroups;
$checked = false;
}
?>
<tr>
<td width="20"><?php
echo smn_draw_checkbox_field('groups_to_boxes[]', $group_boxes_files['admin_files_id'], $checked, '', 'id="subgroups_' . $group_boxes['admin_boxes_id'] . '" onClick="checkSub(this)"');
?>
</td>
<td class="dataTableContent"><?php
echo $group_boxes_files['admin_files_name'] . ' ' . smn_draw_hidden_field('checked_' . $group_boxes_files['admin_files_id'], $checkedBox) . smn_draw_hidden_field('unchecked_' . $group_boxes_files['admin_files_id'], $uncheckedBox);
?>
</td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
<?php
}
示例5: smn_get_languages
$manufacturer_inputs_string = '';
$languages = smn_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$manufacturer_inputs_string .= '<br>' . smn_image(DIR_WS_CATALOG_LANGUAGES . 'images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . smn_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', smn_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . smn_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>');
$contents = array('form' => smn_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $mInfo->manufacturers_name . '</b>');
$contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
if ($mInfo->products_count > 0) {
$contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
$contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
}
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($mInfo) && is_object($mInfo)) {
$heading[] = array('text' => '<b>' . $mInfo->manufacturers_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_DATE_ADDED . ' ' . smn_date_short($mInfo->date_added));
if (smn_not_null($mInfo->last_modified)) {
$contents[] = array('text' => TEXT_LAST_MODIFIED . ' ' . smn_date_short($mInfo->last_modified));
}
$contents[] = array('text' => '<br>' . smn_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
$contents[] = array('text' => '<br>' . TEXT_PRODUCTS . ' ' . $mInfo->products_count);
}
示例6: array
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_move.gif', IMAGE_MOVE) . ' <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_product':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_PRODUCT . '</b>');
$contents = array('form' => smn_draw_form('products', FILENAME_CATEGORIES, 'action=delete_product_confirm&cPath=' . $cPath) . smn_draw_hidden_field('products_id', $pInfo->products_id));
$contents[] = array('text' => TEXT_DELETE_PRODUCT_INTRO);
$contents[] = array('text' => '<br><b>' . $pInfo->products_name . '</b>');
$product_categories_string = '';
$product_categories = smn_generate_category_path($pInfo->products_id, 'product');
for ($i = 0, $n = sizeof($product_categories); $i < $n; $i++) {
$category_path = '';
for ($j = 0, $k = sizeof($product_categories[$i]); $j < $k; $j++) {
$category_path .= $product_categories[$i][$j]['text'] . ' > ';
}
$category_path = substr($category_path, 0, -16);
$product_categories_string .= smn_draw_checkbox_field('product_categories[]', $product_categories[$i][sizeof($product_categories[$i]) - 1]['id'], true) . ' ' . $category_path . '<br>';
}
$product_categories_string = substr($product_categories_string, 0, -4);
$contents[] = array('text' => '<br>' . $product_categories_string);
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'move_product':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_MOVE_PRODUCT . '</b>');
$contents = array('form' => smn_draw_form('products', FILENAME_CATEGORIES, 'action=move_product_confirm&cPath=' . $cPath) . smn_draw_hidden_field('products_id', $pInfo->products_id));
$contents[] = array('text' => sprintf(TEXT_MOVE_PRODUCTS_INTRO, $pInfo->products_name));
$contents[] = array('text' => '<br>' . TEXT_INFO_CURRENT_CATEGORIES . '<br><b>' . smn_output_generated_category_path($pInfo->products_id, 'product') . '</b>');
$contents[] = array('text' => '<br>' . sprintf(TEXT_MOVE, $pInfo->products_name) . '<br>' . smn_draw_pull_down_menu('move_to_category_id', smn_get_category_tree(), $current_category_id));
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_move.gif', IMAGE_MOVE) . ' <a href="' . smn_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pInfo->products_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'copy_to':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_COPY_TO . '</b>');
示例7: array
</td>
</tr>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => '<b>' . $abInfo->affiliate_banners_title . '</b>');
$contents = array('form' => smn_draw_form('affiliate_banners', FILENAME_AFFILIATE_BANNER_MANAGER, 'page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $abInfo->affiliate_banners_title . '</b>');
if ($abInfo->affiliate_banners_image) {
$contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_image', 'on', true) . ' ' . TEXT_INFO_DELETE_IMAGE);
}
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $_GET['abID']) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($abInfo)) {
$sql = "select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $abInfo->affiliate_products_id . "' and language_id = '" . $languages_id . "'";
$product_description_query = smn_db_query($sql);
$product_description = smn_db_fetch_array($product_description_query);
$heading[] = array('text' => '<b>' . $abInfo->affiliate_banners_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=new') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . smn_href_link(FILENAME_AFFILIATE_BANNER_MANAGER, 'selected_box=affiliate&page=' . $_GET['page'] . '&abID=' . $abInfo->affiliate_banners_id . '&action=delete') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => $product_description['products_name']);
$contents[] = array('text' => '<br>' . TEXT_BANNERS_DATE_ADDED . ' ' . smn_date_short($abInfo->affiliate_date_added));
$contents[] = array('text' => '' . sprintf(TEXT_BANNERS_STATUS_CHANGE, smn_date_short($abInfo->affiliate_date_status_change)));
}
break;
示例8: smn_draw_separator
?>
</b></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="checkBox('newsletter_general')">
<td class="main"><?php
echo smn_draw_checkbox_field('newsletter_general', '1', $newsletter['customers_newsletter'] == '1' ? true : false, 'onclick="checkBox(\'newsletter_general\')"');
?>
</td>
<td class="main"><b><?php
echo MY_NEWSLETTERS_GENERAL_NEWSLETTER;
?>
</b></td>
</tr>
<tr>
<td class="main"> </td>
<td><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
示例9: smn_draw_checkbox_field
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td class="formAreaTitle"><br></td>
</tr>
<tr>
<td class="main"><table border="0" width="100%" cellspacing="0" cellpadding="2" class="formArea">
<tr>
<td class="main"><table border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="main"> </td>
<td class="main">
<?php
echo smn_draw_checkbox_field('a_agb', $value = '1', $checked = $affiliate['affiliate_agb']) . ENTRY_AFFILIATE_ACCEPT_AGB . '<b>' . ENTRY_AFFILIATE_ACCEPT_AGB_TEXT . '</b>';
if ($entry_agb_error == true) {
echo "<br>" . ENTRY_AFFILIATE_AGB_ERROR;
}
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<?php
}
?>
</table>
示例10: smn_db_query
<td class="main" colspan="2"><?php
echo NOTIFICATIONS_DESCRIPTION;
?>
</td>
</tr>
<?php
$counter = 0;
$products_query = smn_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_NOTIFICATIONS . " pn where pn.customers_id = '" . (int) $customer_id . "' and pn.products_id = pd.products_id and pd.language_id = '" . (int) $languages_id . "' order by pd.products_name");
while ($products = smn_db_fetch_array($products_query)) {
?>
<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="checkBox('products[<?php
echo $counter;
?>
]')">
<td class="main" width="30"><?php
echo smn_draw_checkbox_field('products[' . $counter . ']', $products['products_id'], true, 'onclick="checkBox(\'products[' . $counter . ']\')"');
?>
</td>
<td class="main"><b><?php
echo $products['products_name'];
?>
</b></td>
</tr>
<?php
$counter++;
}
} else {
?>
<tr>
<td class="main"><?php
echo NOTIFICATIONS_NON_EXISTING;
示例11: smn_draw_separator
</td>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
<tr>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '5');
?>
</td>
<td class="main"><?php
echo '<a href="' . smn_href_link(FILENAME_CONDITIONS) . '">' . VIEW_CONDITIONS_TEXT . '</a><br>';
?>
<?php
echo smn_draw_checkbox_field('conditions', '1') . ' ' . '<span class="inputRequirement">' . AGREE_TO_CONDITIONS_CHECK_BOX . '</span>';
?>
</td>
<td width="10"><?php
echo smn_draw_separator('pixel_trans.gif', '10', '1');
?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
示例12: smn_get_country_list
?>
</td>
<td class="main"><?php
echo smn_get_country_list('country', $entry['entry_country_id']) . ' ' . (smn_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : '');
?>
</td>
</tr>
<?php
if (isset($_GET['edit']) && $customer_default_address_id != $_GET['edit'] || isset($_GET['edit']) == false) {
?>
<tr>
<td colspan="2"><?php
echo smn_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
</tr>
<tr>
<td colspan="2" class="main"><?php
echo smn_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' ' . SET_AS_PRIMARY;
?>
</td>
</tr>
<?php
}
?>
</table></td>
</tr>
</table></td>
</tr>
</table>
示例13: array
<?php
}
?>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'confirm':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>');
$contents = array('form' => smn_draw_form('customers', FILENAME_CUSTOMERS, smn_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO . '<br><br><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
if (isset($cInfo->number_of_reviews) && $cInfo->number_of_reviews > 0) {
$contents[] = array('text' => '<br>' . smn_draw_checkbox_field('delete_reviews', 'on', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
}
$contents[] = array('align' => 'center', 'text' => '<br>' . smn_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . smn_href_link(FILENAME_CUSTOMERS, smn_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . smn_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading[] = array('text' => '<b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . smn_href_link(FILENAME_CUSTOMERS, smn_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=edit') . '">' . smn_image_button('button_edit.gif', IMAGE_EDIT) . '</a><a href="' . smn_href_link(FILENAME_CUSTOMERS, smn_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=confirm') . '">' . smn_image_button('button_delete.gif', IMAGE_DELETE) . '</a> <a href="' . smn_href_link(FILENAME_ORDERS, 'cID=' . $cInfo->customers_id) . '">' . smn_image_button('button_orders.gif', IMAGE_ORDERS) . '</a> <a href="' . smn_href_link(FILENAME_MAIL, 'selected_box=tools&customer=' . $cInfo->customers_email_address) . '">' . smn_image_button('button_email.gif', IMAGE_EMAIL));
$contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_CREATED . ' ' . smn_date_short($cInfo->date_account_created));
$contents[] = array('text' => '<br>' . TEXT_DATE_ACCOUNT_LAST_MODIFIED . ' ' . smn_date_short($cInfo->date_account_last_modified));
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_LAST_LOGON . ' ' . smn_date_short($cInfo->date_last_logon));
$contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_LOGONS . ' ' . $cInfo->number_of_logons);
$contents[] = array('text' => '<br>' . TEXT_INFO_COUNTRY . ' ' . $cInfo->countries_name);
$contents[] = array('text' => '<br>' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $cInfo->number_of_reviews);
}
break;
示例14: smn_draw_separator
echo ' <td align="center" class="tableHeading">' . TABLE_HEADING_QUANTITY . '</td>' . "\n";
if (PRODUCT_LIST_MODEL > 0 && strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
$colspan++;
echo ' <td class="tableHeading">' . TABLE_HEADING_MODEL . '</td>' . "\n";
}
echo ' <td class="tableHeading">' . TABLE_HEADING_PRODUCTS . '</td>' . "\n";
if (!strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
$colspan++;
echo ' <td align="center" class="tableHeading">' . TABLE_HEADING_TAX . '</td>' . "\n";
}
echo ' <td align="right" class="tableHeading">' . TABLE_HEADING_TOTAL . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td colspan="' . $colspan . '">' . smn_draw_separator() . '</td>' . "\n" . ' </tr>' . "\n";
for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
echo ' <tr>' . "\n";
// Delete box only for shopping cart
if (strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
echo ' <td align="center" valign="top">' . smn_draw_checkbox_field('cart_delete[]', $products[$i]['id']) . '</td>' . "\n";
}
// Quantity box or information as an input box or text
if (strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
echo ' <td align="center" valign="top">' . smn_draw_input_field('cart_quantity[]', $products[$i]['quantity'], 'size="4"') . smn_draw_hidden_field('products_id[]', $products[$i]['id']) . '</td>' . "\n";
} else {
echo ' <td align="center" valign="top" class ="main">' . $products[$i]['quantity'] . '</td>' . "\n";
}
// Model
if (PRODUCT_LIST_MODEL > 0 && strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
echo ' <td valign="top" class="main"><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '">' . $products[$i]['model'] . '</a></td>' . "\n";
}
// Product name, with or without link
if (strstr($PHP_SELF, FILENAME_SHOPPING_CART)) {
echo ' <td valign="top" class="main"><a href="' . smn_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';
} else {
示例15: smn_draw_input_field
<td align="left"><?php
echo smn_draw_input_field('coupon_min_order', $coupon_min_order);
?>
</td>
<td align="left" class="main"><?php
echo COUPON_MIN_ORDER_HELP;
?>
</td>
</tr>
<tr>
<td align="left" class="main"><?php
echo COUPON_FREE_SHIP;
?>
</td>
<td align="left"><?php
echo smn_draw_checkbox_field('coupon_free_ship', $coupon_free_ship);
?>
</td>
<td align="left" class="main"><?php
echo COUPON_FREE_SHIP_HELP;
?>
</td>
</tr>
<tr>
<td align="left" class="main"><?php
echo COUPON_CODE;
?>
</td>
<td align="left"><?php
echo smn_draw_input_field('coupon_code', $coupon_code);
?>