本文整理汇总了PHP中zen_draw_file_field函数的典型用法代码示例。如果您正苦于以下问题:PHP zen_draw_file_field函数的具体用法?PHP zen_draw_file_field怎么用?PHP zen_draw_file_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了zen_draw_file_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$default_directory = 'record_company/';
$contents[] = array('text' => '<BR />' . TEXT_RECORD_COMPANY_IMAGE_DIR . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$record_company_inputs_string = '';
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$record_company_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('record_company_url[' . $languages[$i]['id'] . ']', '', zen_set_field_length(TABLE_RECORD_COMPANY_INFO, 'record_company_url'));
}
$contents[] = array('text' => '<br>' . TEXT_RECORD_COMPANY_URL . $record_company_inputs_string);
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link_admin(FILENAME_RECORD_COMPANY, '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_RECORD_COMPANY . '</b>');
$contents = array('form' => zen_draw_form_admin('record_company', FILENAME_RECORD_COMPANY, 'page=' . $_GET['page'] . '&mID=' . $aInfo->record_company_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$contents[] = array('text' => '<br />' . TEXT_RECORD_COMPANY_NAME . '<br>' . zen_draw_input_field('record_company_name', $aInfo->record_company_name, zen_set_field_length(TABLE_RECORD_COMPANY, 'record_company_name')));
$contents[] = array('text' => '<br />' . TEXT_RECORD_COMPANY_IMAGE . '<br>' . zen_draw_file_field('record_company_image') . '<br />' . $aInfo->record_company_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);
}
}
$default_directory = substr($aInfo->record_company_image, 0, strpos($aInfo->record_company_image, '/') + 1);
$contents[] = array('text' => '<BR />' . TEXT_RECORD_COMPANY_IMAGE_DIR . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br />' . zen_info_image($aInfo->record_company_image, $aInfo->record_company_name));
$record_company_inputs_string = '';
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$record_company_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('record_company_url[' . $languages[$i]['id'] . ']', zen_get_record_company_url($aInfo->record_company_id, $languages[$i]['id']), zen_set_field_length(TABLE_RECORD_COMPANY_INFO, 'record_company_url'));
}
示例2: zen_draw_separator
<tr>
<td colspan="2"><?php
echo zen_draw_separator('pixel_black.gif', '100%', '3');
?>
</td>
</tr>
<tr>
<td class="main" colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main"><?php
echo TEXT_PRODUCTS_IMAGE;
?>
</td>
<td class="main"><?php
echo zen_draw_separator('pixel_trans.gif', '24', '15') . ' ' . zen_draw_file_field('products_image') . ' ' . ($pInfo->products_image != '' ? TEXT_IMAGE_CURRENT . $pInfo->products_image : TEXT_IMAGE_CURRENT . ' ' . NONE) . zen_draw_hidden_field('products_previous_image', $pInfo->products_image);
?>
</td>
<td valign = "center" class="main"><?php
echo TEXT_PRODUCTS_IMAGE_DIR;
?>
<?php
echo zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory);
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo zen_draw_separator('pixel_trans.gif', '24', '15');
?>
</td>
示例3: zen_image
$manufacturer_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('feature_name[' . $languages[$i]['id'] . ']', feature_area_get_name($fInfo->id, $languages[$i]['id']), zen_set_field_length(TABLE_ADDON_MODULES_FEATURE_AREA_INFO, 'name'));
}
$contents[] = array('text' => '<br>' . TEXT_FEATURE_NAME . $manufacturer_inputs_string);
$contents[] = array('text' => '<br />' . TEXT_FEATURE_URL . '<br>' . zen_draw_input_field('link_url', $fInfo->link_url, zen_set_field_length(TABLE_ADDON_MODULES_FEATURE_AREA, 'link_url')));
$contents[] = array('text' => '<br />' . TEXT_FEATURE_MAIN_IMAGE . '<br>' . zen_draw_file_field('main_image') . '<br />' . $fInfo->main_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);
}
}
$default_directory = substr($fInfo->main_image, 0, strpos($fInfo->main_image, '/') + 1);
$contents[] = array('text' => '<BR />' . TEXT_FEATURE_MAIN_IMAGE_DIR . zen_draw_pull_down_menu('main_img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br />' . zen_info_image($fInfo->main_image, $fInfo->link_url, 300));
$contents[] = array('text' => '<br />' . TEXT_FEATURE_THUMB_IMAGE . '<br>' . zen_draw_file_field('thumb_image') . '<br />' . $fInfo->thumb_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);
}
}
$default_directory = substr($fInfo->thumb_image, 0, strpos($fInfo->thumb_image, '/') + 1);
$contents[] = array('text' => '<BR />' . TEXT_FEATURE_THUMB_IMAGE_DIR . zen_draw_pull_down_menu('thumb_img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br />' . zen_info_image($fInfo->thumb_image, $fInfo->link_url));
$status_radio = zen_draw_radio_field("status", 1, $fInfo->status == 1) . TEXT_FEATURE_STATUS_TRUE . zen_draw_radio_field("status", 0, $fInfo->status == 0) . TEXT_FEATURE_STATUS_FALSE;
$contents[] = array('text' => '<br />' . TEXT_FEATURE_STATUS . '<br>' . $status_radio);
$new_window_radio = zen_draw_radio_field("new_window", 1, $fInfo->new_window == 1) . TEXT_FEATURE_NEW_WINDOW_TRUE . zen_draw_radio_field("new_window", 0, $fInfo->new_window == 0) . TEXT_FEATURE_NEW_WINDOW_FALSE;
$contents[] = array('text' => '<br />' . TEXT_FEATURE_NEW_WINDOW . '<br>' . $new_window_radio);
$contents[] = array('text' => '<br />' . TEXT_FEATURE_SORT_ORDER . '<br>' . zen_draw_input_field('sort_order', $fInfo->sort_order, 'size="5"'));
示例4: 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" valign="top"><?php
echo TEXT_BANNERS_IMAGE;
?>
</td>
<td class="main"><?php
echo zen_draw_file_field('banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . DIR_FS_CATALOG_IMAGES . zen_draw_input_field('banners_image_local', isset($bInfo->banners_image) ? $bInfo->banners_image : '', zen_set_field_length(TABLE_BANNERS, 'banners_image'));
?>
</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_BANNERS_IMAGE_TARGET;
?>
</td>
<td class="main"><?php
示例5: dir
$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);
}
}
$default_directory = substr($pInfo->products_image, 0, strpos($pInfo->products_image, '/') + 1);
?>
<tr>
<td class="main"><?php
echo TEXT_PRODUCTS_IMAGE;
?>
</td>
<td class="main"><?php
echo zen_draw_file_field('products_image') . '<br />' . $pInfo->products_image . zen_draw_hidden_field('products_previous_image', $pInfo->products_image);
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<?php
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
?>
<tr>
<td class="main"><?php
if ($i == 0) {
示例6: array
$contents = array('form' => zen_draw_form('collections', FILENAME_MEDIA_MANAGER, 'page=' . $_GET['page'] . '&mID=' . $mInfo->media_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$contents[] = array('text' => '<br />' . TEXT_MEDIA_COLLECTION_NAME . '<br>' . zen_draw_input_field('media_name', $mInfo->media_name, zen_set_field_length(TABLE_MEDIA_MANAGER, 'media_name')));
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_MEDIA_MANAGER, 'page=' . $_GET['page'] . '&mID=' . $mInfo->media_id) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
$contents[] = array('text' => zen_draw_separator('pixel_black.gif'));
$contents[] = array('text' => TEXT_MEDIA_EDIT_INSTRUCTIONS);
$contents[] = array('text' => zen_draw_separator('pixel_black.gif'));
$dir = @dir(DIR_FS_CATALOG_MEDIA);
$dir_info[] = array('id' => '', 'text' => "Main Directory");
while ($file = $dir->read()) {
if (@is_dir(DIR_FS_CATALOG_MEDIA . $file) && strtoupper($file) != 'CVS' && $file != '.svn' && $file != "." && $file != "..") {
$dir_info[] = array('id' => $file . '/', 'text' => $file);
}
}
$dir->close();
$contents[] = array('text' => '<br />' . TEXT_ADD_MEDIA_CLIP . zen_draw_file_field('clip_filename'));
$contents[] = array('text' => TEXT_MEDIA_CLIP_DIR . ' ' . zen_draw_pull_down_menu('media_dir', $dir_info));
$media_type_query = "select type_id, type_name, type_ext from " . TABLE_MEDIA_TYPES;
$media_types = $db->Execute($media_type_query);
while (!$media_types->EOF) {
$media_types_array[] = array('id' => $media_types->fields['type_id'], 'text' => $media_types->fields['type_name'] . ' (' . $media_types->fields['type_ext'] . ')');
$media_types->MoveNext();
}
$contents[] = array('text' => TEXT_MEDIA_CLIP_TYPE . ' ' . zen_draw_pull_down_menu('media_type', $media_types_array));
$contents[] = array('text' => '<input type="submit" name="add_clip" value="' . TEXT_ADD . '">');
$clip_query = "select * from " . TABLE_MEDIA_CLIPS . " where media_id = '" . $mInfo->media_id . "'";
$clips = $db->Execute($clip_query);
while (!$clips->EOF) {
$contents[] = array('text' => '<a href="' . zen_href_link(FILENAME_MEDIA_MANAGER, 'action=remove_clip&mID=' . $mInfo->media_id . '&clip_id=' . $clips->fields['clip_id']) . '">' . zen_image_button('button_delete.gif', IMAGE_DELETE) . '</a> ' . $clips->fields['clip_filename'] . '<br />');
$clips->MoveNext();
}
示例7: array
$contents[] = array('text' => '<BR />' . TEXT_PRODUCTS_IMAGE_DIR . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE_MANUAL . ' ' . zen_draw_input_field('manufacturers_image_manual'));
$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('manufacturers_url[' . $languages[$i]['id'] . ']', '', zen_set_field_length(TABLE_MANUFACTURERS_INFO, 'manufacturers_url'));
}
$contents[] = array('text' => '<br>' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link(FILENAME_MANUFACTURERS, '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_MANUFACTURER . '</b>');
$contents = array('form' => zen_draw_form('manufacturers', FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_NAME . '<br>' . zen_draw_input_field('manufacturers_name', htmlspecialchars($mInfo->manufacturers_name, ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_MANUFACTURERS, 'manufacturers_name')));
$contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE . '<br>' . zen_draw_file_field('manufacturers_image') . '<br />' . $mInfo->manufacturers_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();
sort($dir_info);
$default_directory = substr($mInfo->manufacturers_image, 0, strpos($mInfo->manufacturers_image, '/') + 1);
$contents[] = array('text' => '<BR />' . TEXT_PRODUCTS_IMAGE_DIR . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE_MANUAL . ' ' . zen_draw_input_field('manufacturers_image_manual'));
$contents[] = array('text' => '<br />' . zen_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
$manufacturer_inputs_string = '';
$languages = zen_get_languages();
示例8: foreach
}
break;
case 3:
//input type='checkbox'
echo '<li><span>' . $attribute_name . ': </span>';
foreach ($attribute['option_values'] as $value) {
echo zen_draw_checkbox_field($attribute_name, $value);
echo $value . '<br>';
}
// echo zen_draw_checkbox_field($attribute_name,$attribute['option_values']);
break;
case 4:
//input type='file'
foreach ($attribute['option_values'] as $value) {
echo '<li><span>' . $attribute_name . ': </span>';
echo zen_draw_file_field($attribute_name, $attribute['option_values']);
}
//echo zen_draw_file_field($attribute_name,$attribute['option_values']);
break;
case 5:
//common text
echo '<li><span>' . $attribute_name . ': </span>';
echo $attribute['option_values'][0];
break;
}
?>
</li>
<?php
}
?>
示例9: zen_set_field_length
$field_length = zen_set_field_length(TABLE_CATEGORIES_DESCRIPTION, 'categories_name');
foreach ($category['categories_description_categories_name'] as $k => $v) {
$flag = easy_admin_products_model::language_flag($languages, $k);
echo $flag . zen_draw_input_field('categories_description_categories_name[' . $k . ']', $v, $field_length) . '<br />';
}
?>
</td>
</tr>
<tr>
<th><?php
echo MODULE_EASY_ADMIN_PRODUCTS_CATEGORIES_IMAGE;
?>
</th>
<td>
<?php
echo zen_draw_file_field('categories_image');
?>
<br />
<?php
echo MODULE_EASY_ADMIN_PRODUCTS_CATEGORIES_IMAGE_DIR;
$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);
}
}
$default_directory = substr($category['categories_image'], 0, strpos($category['categories_image'], '/') + 1);
echo zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory);
?>
<br />
示例10: array
?>
</table></td>
</tr>
</table></td>
<?php
$heading = array();
$contents = array();
$email_pref_text = empty($tcInfo->email_format) || $tcInfo->email_format == 'TEXT' ? true : false;
$email_pref_html = empty($email_pref_text) ? true : false;
switch ($action) {
case 'import':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_IMPORT_SUBSCRIPTION . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_SUBSCRIPTION_MANAGER, 'page=' . $_GET['page'] . '&action=import_file', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_INFO_IMPORT_INTRO);
$contents[] = array('text' => zen_draw_hidden_field('MAX_FILE_SIZE', '100000'));
$contents[] = array('text' => '<br />' . TEXT_INFO_IMPORT_FILE . '<br />' . zen_draw_file_field('subscriber_import_file', true));
$contents[] = array('text' => '<br />' . TEXT_INFO_IMPORT_SAMPLE . ' ' . zen_draw_input_field('record_sample', 'email NULL format NULL', 'size="100%"'));
$contents[] = array('text' => '<br />' . TEXT_INFO_IMPORT_DELIM . ' ' . zen_draw_input_field('record_delim', '', 'size="5"'));
$contents[] = array('text' => '<br />' . TEXT_INFO_IMPORT_ENCL . ' ' . zen_draw_input_field('field_encl', '', 'size="5"'));
$contents[] = array('text' => '<br />' . TEXT_INFO_IMPORT_HEADER_ROW . ' ' . zen_draw_checkbox_field('record_header', '1'));
$contents[] = array('text' => '<br />' . TEXT_INFO_IMPORT_FORMAT . ' ' . zen_draw_radio_field('default_format', 'TEXT', true) . ENTRY_EMAIL_TEXT_DISPLAY . ' ' . zen_draw_radio_field('default_format', 'HTML', true) . ENTRY_EMAIL_HTML_DISPLAY);
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_upload.gif', IMAGE_UPLOAD) . ' <a href="' . zen_href_link(FILENAME_SUBSCRIPTION_MANAGER, 'page=' . $_GET['page']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'new':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_NEW_SUBSCRIPTION . '</b>');
$contents = array('form' => zen_draw_form('classes', FILENAME_SUBSCRIPTION_MANAGER, '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('email_address', '', zen_set_field_length(TABLE_SUBSCRIBERS, 'email_address')));
$contents[] = array('text' => '<br />' . TABLE_HEADING_PREFERENCE . '<br />' . zen_draw_radio_field('email_format', 'HTML', $email_pref_html) . ' ' . ENTRY_EMAIL_HTML_DISPLAY . ' ' . zen_draw_radio_field('email_format', 'TEXT', $email_pref_text) . ' ' . ENTRY_EMAIL_TEXT_DISPLAY);
$contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . zen_href_link(FILENAME_SUBSCRIPTION_MANAGER, 'page=' . $_GET['page']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
示例11: zen_draw_file_field
<label for="type"><?php
echo LABEL_TYPE;
?>
</label>
<select name="type">
<option value="groupon">Groupon</option>
<option value="generic">Generic</option>
</select>
<br />
<label for="upload"><?php
echo LABEL_UPLOAD;
?>
</label>
<?php
echo zen_draw_file_field('upload');
?>
<br />
<?php
if ($products->RecordCount() > 0) {
echo '<label for="products">' . LABEL_PRODUCTS . '</label>' . "\n";
$products_size = $products->RecordCount() > 10 ? 10 : $products->RecordCount();
echo '<select name="products[]" multiple="multiple" size="' . $products_size . '">' . "\n";
while (!$products->EOF) {
echo '<option value="' . $products->fields['products_id'] . '">' . $products->fields['products_name'] . '</option>' . "\n";
$products->MoveNext();
}
echo '</select><br />' . "\n";
}
?>
示例12: array
$default_directory = 'suppliers/';
$contents[] = array('text' => '<BR />' . TEXT_PRODUCTS_IMAGE_DIR . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$supplier_inputs_string = '';
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$supplier_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('suppliers_url[' . $languages[$i]['id'] . ']', '', zen_set_field_length(TABLE_SUPPLIERS_INFO, 'suppliers_url'));
}
$contents[] = array('text' => '<br>' . TEXT_SUPPLIERS_URL . $supplier_inputs_string);
$contents[] = array('align' => 'center', 'text' => '<br>' . zen_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . zen_href_link_admin(FILENAME_SUPPLIERS, '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_MANUFACTURER . '</b>');
$contents = array('form' => zen_draw_form_admin('suppliers', FILENAME_SUPPLIERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->suppliers_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$contents[] = array('text' => '<br />' . TEXT_SUPPLIERS_NAME . '<br>' . zen_draw_input_field('suppliers_name', $mInfo->suppliers_name, zen_set_field_length(TABLE_SUPPLIERS, 'suppliers_name')));
$contents[] = array('text' => '<br />' . TEXT_SUPPLIERS_IMAGE . '<br>' . zen_draw_file_field('suppliers_image') . '<br />' . $mInfo->suppliers_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);
}
}
$default_directory = substr($mInfo->suppliers_image, 0, strpos($mInfo->suppliers_image, '/') + 1);
$contents[] = array('text' => '<BR />' . TEXT_PRODUCTS_IMAGE_DIR . zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory));
$contents[] = array('text' => '<br />' . zen_info_image($mInfo->suppliers_image, $mInfo->suppliers_name));
$supplier_inputs_string = '';
$languages = zen_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$supplier_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . zen_draw_input_field('suppliers_url[' . $languages[$i]['id'] . ']', zen_get_manufacturer_url($mInfo->suppliers_id, $languages[$i]['id']), zen_set_field_length(TABLE_SUPPLIERS_INFO, 'suppliers_url'));
}
示例13: unset
$return_button = '';
}
$return_button = '<td class="pageHeading" align="right">' . $return_button . '</td>';
if (!isset($body)) {
if (array_key_exists('product_csv', $_SESSION)) {
if (array_key_exists('csv_format_id', $_SESSION['product_csv'])) {
$csv_format_id = $_SESSION['product_csv']['csv_format_id'];
}
if (array_key_exists('ignore_first_line', $_SESSION['product_csv'])) {
$ignore_first_line = $_SESSION['product_csv']['ignore_first_line'];
}
unset($_SESSION['product_csv']);
}
$body = '<tr><th>' . zen_draw_form('import', FILENAME_ADDON_MODULES_ADMIN, 'module=product_csv&action=import', 'post', 'enctype="multipart/form-data"') . PRODUCT_CSV_IMPORT_TITLE . '</th></tr><tr><td>' . PRODUCT_CSV_IMPORT_MESSAGE . '<table border="0" width="100%" cellspacing="0" cellpadding="0" class="tableLayout3"><tr><th width="40%">
<label for="format">' . PRODUCT_CSV_FORMAT . ': </label></th><td>' . zen_draw_pull_down_menu('csv_format_id', $formats, '', 'id="format"') . '</td></tr>
<tr><th width="40%"><label for="ignore">' . PRODUCT_CSV_IGNORE_FIRST_LINE . ': </label>' . zen_draw_checkbox_field('ignore_first_line', 'ignore', false, '', 'id="ignore"') . zen_draw_hidden_field('MAX_FILE_SIZE', return_bytes(ini_get(upload_max_filesize))) . '</th><td>' . zen_draw_file_field('file') . ' <input type="submit" name="upfile" value="' . PRODUCT_CSV_IMPORT_BUTTON . '" disabled="disabled" id="upfile"/><br/>
</form></td></tr></table></tr><tr><th>' . zen_draw_form('export', FILENAME_ADDON_MODULES_ADMIN, 'module=product_csv&action=export', 'post') . PRODUCT_CSV_EXPORT_TITLE . '</th></tr><tr><td><table border="0" width="100%" cellspacing="0" cellpadding="0" class="tableLayout3">
<tr>
<th width="40%"><label for="format">' . PRODUCT_CSV_FORMAT . ': </label></th><td>' . zen_draw_pull_down_menu('csv_format_id', $formats, '', 'id="format"') . '</td>
</tr>
<tr>
<th width="40%"><label for="category">' . PRODUCT_CSV_EXPORT_CATEGORY . ': </label></th><td>' . zen_draw_pull_down_menu('category_id', zen_get_category_tree(), '', 'id="category"') . '</td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" name="downfile" value="' . PRODUCT_CSV_EXPORT_BUTTON . '"/></td>
</form>
</tr>
</table>
</td></tr>';
}
$zco_notifier->notify('NOTIFY_PRODUCT_CSV_FINISH_BODY_GENERATE');
示例14: zen_image
echo MODULE_EASY_ADMIN_PRODUCTS_ATTRIBUTES_OPEN_SETTING;
?>
</a></h3>
<div id="image_setting" style="display:none;">
<?php
echo $attribute['attributes_image'] != '' ? zen_image(DIR_WS_CATALOG_IMAGES . $attribute['attributes_image']) : '';
?>
<table>
<tr>
<th><?php
echo MODULE_EASY_ADMIN_PRODUCTS_ATTRIBUTES_IMAGE;
?>
:</th>
<td>
<?php
echo zen_draw_file_field('attributes_image');
?>
<?php
echo zen_draw_hidden_field('attributes_previous_image', $attribute['attributes_image']);
?>
</td>
</tr>
<tr>
<th><?php
echo MODULE_EASY_ADMIN_PRODUCTS_ATTRIBUTES_IMAGE_DIR;
?>
:</th>
<td><?php
echo zen_draw_pull_down_menu('img_dir', $dir_info, $default_directory);
?>
</td>
示例15: array
$dir = @dir(DIR_WS_ADMIN_ATTACHMENTS);
$dir_info[] = array('id' => '', 'text' => "admin-attachments");
while ($file = $dir->read()) {
if (is_dir(DIR_WS_ADMIN_ATTACHMENTS . $file) && strtoupper($file) != 'CVS' && $file != "." && $file != "..") {
$dir_info[] = array('id' => $file . '/', 'text' => $file);
}
}
$dir->close();
?>
<tr>
<td class="main" valign="top"><?php
echo TEXT_SELECT_ATTACHMENT_TO_UPLOAD;
?>
</td>
<td class="main"><?php
echo zen_draw_file_field('upload_file') . '<br />' . stripslashes($_POST['upload_file']) . zen_draw_hidden_field('prev_upload_file', stripslashes($_POST['upload_file']));
?>
<br />
<?php
echo TEXT_ATTACHMENTS_DIR;
?>
<?php
echo zen_draw_pull_down_menu('attach_dir', $dir_info);
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo zen_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>