本文整理汇总了PHP中zen_set_field_length函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_set_field_length函数的具体用法?PHP zen_set_field_length怎么用?PHP zen_set_field_length使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_set_field_length函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: array
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TAX_CLASS . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . zen_draw_input_field('tax_class_title', $tcInfo->tax_class_title, zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_title')));
$tax_inputs_string = '';
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$tax_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('tax_class_title_m17n[' . $languages[$i]['id'] . ']', zen_get_tax_class_title_m17n($tcInfo->tax_class_id, $languages[$i]['id']), zen_set_field_length(TABLE_TAX_CLASS_M17N, 'tax_class_title'));
}
$contents[] = array('text' => '<br>' . $tax_inputs_string);
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . zen_draw_input_field('tax_class_description', $tcInfo->tax_class_description, zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_description')));
$tax_inputs_string = '';
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$tax_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('tax_class_description_m17n[' . $languages[$i]['id'] . ']', zen_get_tax_class_description_m17n($tcInfo->tax_class_id, $languages[$i]['id']), zen_set_field_length(TABLE_TAX_CLASS_M17N, 'tax_class_description'));
}
$contents[] = array('text' => '<br>' . $tax_inputs_string);
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_CLASS . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($tcInfo) && is_object($tcInfo)) {
$heading[] = array('text' => '<b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:tax_classes.php
示例2: zen_draw_pull_down_menu
?>
<br class="clearBoth" /> <label class="inputLabel" for="stateZone"
id="zoneLabel"><?php
echo ENTRY_STATE;
?>
</label>
<?php
echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $state_zone_id, 'id="stateZone"');
?>
<br class="clearBoth" id="stBreak" /> <label class="inputLabel"
for="state" id="stateLabel"><?php
echo $state_field_label;
?>
</label>
<?php
echo zen_draw_input_field('state', $selectedState, zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' id="state"') . ' <span class="alert" id="stText"> </span>';
?>
<br class="clearBoth" />
<?php
if (CART_SHIPPING_METHOD_ZIP_REQUIRED == "true") {
?>
<label class="inputLabel"><?php
echo ENTRY_POST_CODE;
?>
</label>
<?php
echo zen_draw_input_field('zip_code', $zip_code, 'size="7"');
?>
<br class="clearBoth" />
<?php
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:tpl_modules_shipping_estimator.php
示例3: zen_draw_separator
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_PRODUCTS_MODEL;
?>
</td>
<td class="main"><?php
echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_input_field('products_model', htmlspecialchars(stripslashes($pInfo->products_model), ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_PRODUCTS, 'products_model'));
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<?php
$dir = @dir(DIR_FS_CATALOG_IMAGES);
$dir_info[] = array('id' => '', 'text' => "Main Directory");
while ($file = $dir->read()) {
if (is_dir(DIR_FS_CATALOG_IMAGES . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
$dir_info[] = array('id' => $file . '/', 'text' => $file);
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:collect_info.php
示例4: substr
}
}
$dir->close();
$default_directory = substr($cInfo->categories_image, 0, strpos($cInfo->categories_image, '/') + 1);
$contents[] = array('text' => TEXT_CATEGORIES_IMAGE_DIR . ' ' . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br />' . TEXT_SORT_ORDER . '<br />' . zen_draw_input_field('sort_order', '', 'size="4"'));
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'edit_category':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</b>');
$contents = array('form' => zen_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . zen_draw_hidden_field('categories_id', $cInfo->categories_id));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$category_inputs_string = '';
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$category_inputs_string .= '<br />' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', htmlspecialchars(zen_get_category_name($cInfo->categories_id, $languages[$i]['id']), ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_CATEGORIES_DESCRIPTION, 'categories_name'));
}
$contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
$contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . zen_draw_file_field('categories_image'));
$dir = @dir(DIR_FS_CATALOG_IMAGES);
$dir_info[] = array('id' => '', 'text' => "Main Directory");
while ($file = $dir->read()) {
if (is_dir(DIR_FS_CATALOG_IMAGES . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
$dir_info[] = array('id' => $file . '/', 'text' => $file);
}
}
$dir->close();
$default_directory = substr($cInfo->categories_image, 0, strpos($cInfo->categories_image, '/') + 1);
$contents[] = array('text' => TEXT_CATEGORIES_IMAGE_DIR . ' ' . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br>' . zen_info_image($cInfo->categories_image, $cInfo->categories_name));
$contents[] = array('text' => '<br>' . $cInfo->categories_image);
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:product_music.php
示例5: floor
?>
</td>
</tr>
<?php
// add option name
if ($action != 'update_option') {
?>
<tr class="<?php
echo floor($rows / 2) == $rows / 2 ? 'attributes-even' : 'attributes-odd';
?>
">
<?php
echo '<form name="options" action="' . zen_href_link(FILENAME_OPTIONS_NAME_MANAGER, 'action=add_product_options' . (isset($_GET['option_page']) ? '&option_page=' . $_GET['option_page'] . '&' : '') . (isset($_GET['value_page']) ? '&value_page=' . $_GET['value_page'] . '&' : '') . (isset($_GET['attribute_page']) ? '&attribute_page=' . $_GET['attribute_page'] : '') . '&option_order_by=' . $option_order_by) . '" method="post"><input type="hidden" name="products_options_id" value="' . $next_id . '">';
$inputs = '';
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$inputs .= $languages[$i]['code'] . ': <input type="text" name="option_name[' . $languages[$i]['id'] . ']" ' . zen_set_field_length(TABLE_PRODUCTS_OPTIONS, 'products_options_name', 25) . '>' . TEXT_SORT . '<input type="text" name="products_options_sort_order[' . $languages[$i]['id'] . ']" size="3">' . ' <br />';
}
//CLR 030212 - Add column for option type
?>
<td align="center" class="smallText"> <?php
echo $next_id;
?>
</td>
<td class="smallText"><?php
echo $inputs;
?>
</td>
<td class="smallText"><?php
echo draw_optiontype_pulldown('option_type');
?>
</td>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:options_name_manager.php
示例6: echo_shipping_address_form
/** Echoes out a complete address form, returns nothing.
*
* You are required to manually put the `form-horizontal` class in the
* surrounding `<form>` element.
*/
public static function echo_shipping_address_form()
{
global $entry, $zone_name, $zone_id, $flag_show_pulldown_states, $selected_country;
?>
<p class="text-danger"><strong><?php
echo FORM_REQUIRED_INFORMATION;
?>
</strong></p>
<?php
if (ACCOUNT_GENDER == 'true') {
$male = (isset($gender) ? $gender : $entry->fields['entry_gender']) == 'male';
echo '<label class="radio-inline">' . zen_draw_radio_field('gender', 'm', $male, 'id="gender-male"') . MALE . '</label>' . '<label class="radio-inline">' . zen_draw_radio_field('gender', 'f', !$male, 'id="gender-female"') . FEMALE . '</label>' . self::required_text(ENTRY_GENDER_TEXT);
}
?>
<div class='form-group'>
<label class="control-label col-sm-4" for="firstname"><?php
echo self::required_text(ENTRY_FIRST_NAME_TEXT) . ENTRY_FIRST_NAME;
?>
</label>
<div class='col-sm-8'>
<?php
echo zen_draw_input_field('firstname', $entry->fields['entry_firstname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' class="form-control" id="firstname"');
?>
</div>
</div>
<div class='form-group'>
<label class="control-label col-sm-4" for="lastname"><?php
echo self::required_text(ENTRY_LAST_NAME_TEXT) . ENTRY_LAST_NAME;
?>
</label>
<div class='col-sm-8'>
<?php
echo zen_draw_input_field('lastname', $entry->fields['entry_lastname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' class="form-control" id="lastname"');
?>
</div>
</div>
<?php
if (ACCOUNT_COMPANY == 'true') {
?>
<div class='form-group'>
<label class="control-label col-sm-4" for="lastname"><?php
echo self::required_text(ENTRY_COMPANY_TEXT) . ENTRY_COMPANY;
?>
</label>
<div class='col-sm-8'>
<?php
echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' class="form-control" id="company"');
?>
</div>
</div>
<?php
}
?>
<div class='form-group'>
<label class="control-label col-sm-4" for="street-address"><?php
echo self::required_text(ENTRY_STREET_ADDRESS_TEXT) . ENTRY_STREET_ADDRESS;
?>
</label>
<div class='col-sm-8'>
<?php
echo zen_draw_input_field('street_address', $entry->fields['entry_street_address'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' class="form-control" id="street-address"');
?>
</div>
</div>
<?php
if (ACCOUNT_SUBURB == 'true') {
?>
<div class='form-group'>
<label class="control-label col-sm-4" for="suburb"><?php
echo self::required_text(ENTRY_SUBURB_TEXT) . ENTRY_SUBURB;
?>
</label>
<div class='col-sm-8'>
<?php
echo zen_draw_input_field('suburb', $entry->fields['entry_suburb'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' class="form-control" id="suburb"');
?>
</div>
</div>
<?php
}
?>
<div class='form-group'>
<label class="control-label col-sm-4" for="city"><?php
echo self::required_text(ENTRY_CITY_TEXT) . ENTRY_CITY;
?>
</label>
<div class='col-sm-8'>
<?php
echo zen_draw_input_field('city', $entry->fields['entry_city'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' class="form-control" id="city"');
//.........这里部分代码省略.........
开发者ID:Southern-Exposure-Seed-Exchange,项目名称:Zencart-Bootstrap-Theme,代码行数:101,代码来源:sese_bootstrap_forms.php
示例7: zen_image
<td><table border="3" cellspacing="4" cellpadding="6">
<tr>
<td class="main" colspan="2">
<?php
echo zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . '<strong>' . TEXT_PRODUCTS_NAME . '</strong>' . ' ' . zen_get_products_name($_GET['pID'], $languages[$i]['id']) . ' <strong>' . TEXT_PRODUCTS_MODEL . '</strong> ' . $pInfo->products_model . ' <strong>' . TEXT_PRODUCTS_PRICE_INFO . '</strong> ' . $currencies->format($pInfo->products_price_sorter);
?>
</td>
</tr>
<tr>
<td class="main"valign="top"><?php
echo TEXT_META_TAGS_TITLE;
?>
</td>
<td class="main">
<?php
echo zen_draw_input_field('metatags_title[' . $languages[$i]['id'] . ']', isset($metatags_title[$languages[$i]['id']]) ? stripslashes($metatags_title[$languages[$i]['id']]) : zen_get_metatags_title($pInfo->products_id, $languages[$i]['id']), zen_set_field_length(TABLE_META_TAGS_PRODUCTS_DESCRIPTION, 'metatags_title', '150', false));
//,'id="'.'metatags_title' . $languages[$i]['id'] . '"');
?>
</td>
</tr>
<tr>
<td class="main"valign="top"><?php
echo TEXT_META_TAGS_KEYWORDS;
?>
</td>
<td class="main">
<?php
echo zen_draw_textarea_field('metatags_keywords[' . $languages[$i]['id'] . ']', 'soft', '100%', '10', isset($metatags_keywords[$languages[$i]['id']]) ? stripslashes($metatags_keywords[$languages[$i]['id']]) : zen_get_metatags_keywords($pInfo->products_id, $languages[$i]['id']));
//,'id="'.'metatags_keywords' . $languages[$i]['id'] . '"');
?>
</td>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:collect_info_metatags.php
示例8: elseif
} elseif ($pInfo->pending > 0) {
$point_specify = 'pending';
$point_value = $pInfo->pending;
} elseif ($pInfo->withdraw > 0) {
$point_specify = 'withdraw';
$point_value = $pInfo->withdraw;
}
$heading[] = array('text' => '<strong>[' . $pInfo->id . '] ' . TEXT_INFO_HEADING_EDIT_POINT . '</strong>');
$contents = array('form' => zen_draw_form('points', FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=update_point', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$contents[] = array('text' => ENTRY_POINT_ID . $pInfo->id);
$contents[] = array('text' => ENTRY_CUSTOMERS_ID . $pInfo->customers_id);
$contents[] = array('text' => ENTRY_CUSTOMERS_NAME . $pInfo->firstname . ' ' . $pInfo->lastname . ($pInfo->company != '' ? ' ' . $pInfo->company : ''));
$contents[] = array('text' => ENTRY_CUSTOMERS_EMAIL . $pInfo->email);
$contents[] = array('text' => '<br />' . ENTRY_DESCRIPTION . '<br />' . zen_draw_input_field('description', $pInfo->description, zen_set_field_length(TABLE_POINT_HISTORIES, 'description')));
$contents[] = array('text' => '<br />' . ENTRY_POINT . '<br />' . zen_draw_pull_down_menu('point_specify', $point_specify_options, $point_specify) . ' ' . zen_draw_input_field('point_value', $point_value, zen_set_field_length(TABLE_POINT_HISTORIES, 'deposit')) . ' ' . TEXT_POINT);
$contents[] = array('text' => '<br />' . TEXT_DATE_POINT_CREATED . ' ' . zen_date_short($pInfo->created_at));
if (zen_not_null($pInfo->updated_at)) {
$contents[] = array('text' => TEXT_DATE_POINT_UPDATED . ' ' . zen_date_short($pInfo->updated_at));
}
$contents[] = array('text' => ENTRY_STATUS . ($pInfo->status == '1' ? 'ON' : 'OFF'));
$contents[] = array('text' => TEXT_INFO_POINT_CLASS . ' ' . $pInfo->class);
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id, 'NONSSL') . '">' . zen_image_button('button_back.gif', IMAGE_BACK) . '</a>');
}
break;
case 'delete':
$heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_POINT . '</strong>');
$contents = array('form' => zen_draw_form('points', FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id . '&action=deleteconfirm', 'post', '', true));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . '<br /><br /><strong>' . ENTRY_POINT_ID . $pInfo->id . '<br />' . $pInfo->firstname . ' ' . $pInfo->lastname . ($pInfo->company != '' ? '<br />' . $pInfo->company : '') . '<br />' . $pInfo->description . '</strong>');
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_ADDON_MODULES_ADMIN, zen_get_all_get_params(array('module', 'pID', 'action')) . 'module=point_base&pID=' . $pInfo->id, 'NONSSL') . '">' . zen_image_button('button_back.gif', IMAGE_BACK) . '</a>');
break;
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:admin.php
示例9: array
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_SPECIALS . '</b>');
$contents = array('form' => zen_draw_form('specials', FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $sInfo->products_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'pre_add':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_PRE_ADD_SPECIALS . '</b>');
$contents = array('form' => zen_draw_form('specials', FILENAME_SPECIALS, 'action=pre_add_confirmation'));
$contents[] = array('text' => TEXT_INFO_PRE_ADD_INTRO);
$contents[] = array('text' => '<br />' . TEXT_PRE_ADD_PRODUCTS_ID . '<br>' . zen_draw_input_field('pre_add_products_id', '', zen_set_field_length(TABLE_SPECIALS, 'products_id')));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_confirm.gif', IMAGE_CONFIRM) . ' <a href="' . zen_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (is_object($sInfo)) {
$heading[] = array('text' => '<b>' . $sInfo->products_name . '</b>');
if ($sInfo->products_priced_by_attribute == '1') {
$specials_current_price = zen_get_products_base_price($sInfo->products_id);
} else {
$specials_current_price = $sInfo->products_price;
}
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_SPECIALS, 'page=' . $_GET['page'] . '&sID=' . $sInfo->specials_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_PRODUCTS_PRICE_MANAGER, 'action=edit&products_filter=' . $sInfo->products_id) . '">' . zen_image_button('button_products_price_manager.gif', IMAGE_PRODUCTS_PRICE_MANAGER) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE_ADDED . ' ' . zen_date_short($sInfo->specials_date_added));
$contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . zen_date_short($sInfo->specials_last_modified));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_info_image($sInfo->products_image, $sInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:specials.php
示例10: zen_draw_password_field
</label>
<?php
echo zen_draw_password_field('password', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-new" class="inputlogin"');
?>
</div>
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 confirm-password">
<label class="inputLabel" for="password-confirm">
<?php
echo ENTRY_PASSWORD_CONFIRMATION;
?>
<?php
echo zen_not_null(ENTRY_PASSOWRD_CONFIRMATION_TEXT) ? '<span class="alert-text">' . ENTRY_PASSWORD_CONFIRMATION_TEXT . '</span>' : '';
?>
</label>
<?php
echo zen_draw_password_field('confirmation', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_password', '20') . ' id="password-confirm" class="inputlogin"');
?>
</div>
</div>
</div>
</div>
<?php
if (DISPLAY_PRIVACY_CONDITIONS == 'true') {
?>
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 privacy-condition-info">
<div class="content">
<h4><?php
echo TABLE_HEADING_PRIVACY_CONDITIONS;
?>
</h4>
<div class="information"><?php
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:tpl_modules_create_account.php
示例11: while
?>
<td align="center" class="smallText"> <?php
echo $next_id;
?>
</td>
<td align="center" class="smallText"> <select name="option_id">
<?php
$options_values = $db->Execute("select products_options_id, products_options_name, products_options_type\n from " . TABLE_PRODUCTS_OPTIONS . "\n where language_id = '" . $_SESSION['languages_id'] . "' and products_options_type !='" . PRODUCTS_OPTIONS_TYPE_TEXT . "' and products_options_type !='" . PRODUCTS_OPTIONS_TYPE_FILE . "'\n order by products_options_name");
while (!$options_values->EOF) {
echo '<option name="' . $options_values->fields['products_options_name'] . '" value="' . $options_values->fields['products_options_id'] . '">' . $options_values->fields['products_options_name'] . '</option>';
$options_values->MoveNext();
}
$inputs = '';
$inputs = '';
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$inputs .= $languages[$i]['code'] . ': <input type="text" name="value_name[' . $languages[$i]['id'] . ']" ' . zen_set_field_length(TABLE_PRODUCTS_OPTIONS_VALUES, 'products_options_values_name', 25) . '> <br />';
}
$inputs2 .= TEXT_SORT . '<input type="text" name="products_options_values_sort_order" size="4"> ';
?>
</select> </td>
<td class="smallText"><input type="hidden" name="value_id" value="<?php
echo $next_id;
?>
"><?php
echo $inputs;
?>
</td>
<td colspan="1" class="smallText"><input type="hidden" name="value_id" value="<?php
echo $next_id;
?>
"><?php
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:options_values_manager.php
示例12: array
$contents = array();
switch ($action) {
case 'new':
$heading[] = array('text' => '<b>' . TEXT_HEADING_NEW_MEDIA_TYPE . '</b>');
$contents = array('form' => zen_draw_form('media_type', FILENAME_MEDIA_TYPES, 'action=insert', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_NEW_INTRO);
$contents[] = array('text' => '<br>' . TEXT_MEDIA_TYPE_NAME . '<br>' . zen_draw_input_field('type_name', '', zen_set_field_length(TABLE_MEDIA_TYPES, 'type_name')));
$contents[] = array('text' => '<br>' . TEXT_MEDIA_TYPE_EXT . '<br>' . zen_draw_input_field('type_ext', '', zen_set_field_length(TABLE_MEDIA_TYPES, 'type_ext')));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_MEDIA_TYPES, 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_MEDIA_TYPE . '</b>');
$contents = array('form' => zen_draw_form('media_type', FILENAME_MEDIA_TYPES, 'page=' . $_GET['page'] . '&mID=' . $mInfo->type_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_MEDIA_TYPE_NAME . '<br>' . zen_draw_input_field('type_name', $mInfo->type_name, zen_set_field_length(TABLE_MEDIA_TYPES, 'type_name')));
$contents[] = array('text' => '<br />' . TEXT_MEDIA_TYPE_EXT . '<br>' . zen_draw_input_field('type_ext', $mInfo->type_ext, zen_set_field_length(TABLE_MEDIA_TYPES, 'type_ext')));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_MEDIA_TYPES, 'page=' . $_GET['page'] . '&mID=' . $mInfo->type_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MEDIA_TYPES . '</b>');
$contents = array('form' => zen_draw_form('media_type', FILENAME_MEDIA_TYPES, 'page=' . $_GET['page'] . '&mID=' . $mInfo->type_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $mInfo->type_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_MEDIA_TYPES, 'page=' . $_GET['page'] . '&mID=' . $mInfo->type_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($mInfo) && is_object($mInfo)) {
$heading[] = array('text' => '<b>' . $mInfo->type_name . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_MEDIA_TYPES, 'page=' . $_GET['page'] . '&mID=' . $mInfo->type_id . '&action=edit') . '">' . zen_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . zen_href_link(FILENAME_MEDIA_TYPES, 'page=' . $_GET['page'] . '&mID=' . $mInfo->type_id . '&action=delete') . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_EXTENSION . ' ' . $mInfo->type_ext);
}
开发者ID:dalinhuang,项目名称:yijinhuanxiang,代码行数:31,代码来源:media_types.php
示例13: array
$dir = @dir(DIR_FS_CATALOG_IMAGES);
$dir_info[] = array('id' => '', 'text' => "Main Directory");
while ($file = $dir->read()) {
if (is_dir(DIR_FS_CATALOG_IMAGES . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
$dir_info[] = array('id' => $file . '/', 'text' => $file);
}
}
$dir->close();
$default_directory = substr($aInfo->artists_image, 0, strpos($aInfo->artists_image, '/') + 1);
$contents[] = array('text' => '<BR />' . TEXT_ARTISTS_IMAGE_DIR . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br />' . TEXT_ARTISTS_IMAGE_MANUAL . ' ' . zen_draw_input_field('artists_image_manual'));
$contents[] = array('text' => '<br />' . zen_info_image($aInfo->artists_image, $aInfo->artists_name));
$manufacturer_inputs_string = '';
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$manufacturer_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('artists_url[' . $languages[$i]['id'] . ']', zen_get_artists_url($aInfo->artists_id, $languages[$i]['id']), zen_set_field_length(TABLE_RECORD_ARTISTS_INFO, 'artists_url'));
}
$contents[] = array('text' => '<br>' . TEXT_RECORD_ARTIST_URL . $manufacturer_inputs_string);
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_RECORD_ARTISTS, 'page=' . $_GET['page'] . '&mID=' . $aInfo->artists_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_RECORD_ARTIST . '</b>');
$contents = array('form' => zen_draw_form('artists', FILENAME_RECORD_ARTISTS, 'page=' . $_GET['page'] . '&action=deleteconfirm') . zen_draw_hidden_field('mID', $aInfo->artists_id));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $aInfo->artists_name . '</b>');
$contents[] = array('text' => '<br>' . zen_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
if ($aInfo->products_count > 0) {
$contents[] = array('text' => '<br>' . zen_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
$contents[] = array('text' => '<br>' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $aInfo->products_count));
}
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_RECORD_ARTISTS, 'page=' . $_GET['page'] . '&mID=' . $aInfo->artists_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
开发者ID:bobjacobsen,项目名称:EventTools,代码行数:31,代码来源:record_artists.php
示例14: zen_not_null
}
?>
<br class="clearBoth" />
<?php
}
?>
<label class="inputLabel" for="postcode">
<?php
echo ENTRY_POST_CODE;
?>
<?php
echo zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert-text">' . ENTRY_POST_CODE_TEXT . '</span>' : '';
?>
</label>
<?php
echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"');
?>
<br class="clearBoth" />
<label class="inputLabel" for="country">
<?php
echo ENTRY_COUNTRY;
?>
<?php
echo zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert-text">' . ENTRY_COUNTRY_TEXT . '</span>' : '';
?>
</label>
<?php
echo zen_get_country_list('zone_country_id', $entry->fields['entry_country_id'], 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : ''));
?>
<br class="clearBoth" />
<br class="clearBoth" />
开发者ID:quangn92,项目名称:visualyou,代码行数:31,代码来源:tpl_modules_address_book_details.php
示例15: zen_draw_input_field
?>
</h3>
<table class="border fit account" id="tel">
<tr>
<th scope="row"><span class="required"><?php
echo TEXT_REQUIRED;
?>
</span><label><?php
echo ENTRY_TELEPHONE_NUMBER;
?>
</label></th>
<td><p><?php
echo ENTRY_SAMPLE_12;
?>
</p><?php
echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"');
?>
</td>
</tr>
<?php
if (ACCOUNT_FAX_NUMBER == 'true') {
?>
<tr>
<th scope="row"><?php
echo ENTRY_FAX_NUMBER;
?>
</th>
<td><p><?php
echo ENTRY_SAMPLE_12;
?>
</p><?php
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:tpl_modules_checkout_new_address.php
示例16: array
$contents = array();
switch ($action) {
case 'new':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_TAX_CLASS . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=insert'));
$contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . zen_draw_input_field('tax_class_title', '', zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_title')));
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . zen_draw_input_field('tax_class_description', '', zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_description')));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TAX_CLASS . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=save'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_TITLE . '<br>' . zen_draw_input_field('tax_class_title', htmlspecialchars($tcInfo->tax_class_title, ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_title')));
$contents[] = array('text' => '<br>' . TEXT_INFO_CLASS_DESCRIPTION . '<br>' . zen_draw_input_field('tax_class_description', htmlspecialchars($tcInfo->tax_class_description, ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_TAX_CLASS, 'tax_class_description')));
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_CLASS . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&action=deleteconfirm') . zen_draw_hidden_field('tID', $tcInfo->tax_class_id));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($tcInfo) && is_object($tcInfo)) {
$heading[] = array('text' => '<b>' . $tcInfo->tax_class_title . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . zen_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . zen_image_button('but
|
请发表评论