本文整理汇总了PHP中tep_draw_file_field函数的典型用法代码示例。如果您正苦于以下问题:PHP tep_draw_file_field函数的具体用法?PHP tep_draw_file_field怎么用?PHP tep_draw_file_field使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tep_draw_file_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: tep_draw_separator
</tr>
<tr>
<td><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_ATTACH_FILE;
?>
</td>
</tr>
<tr>
<td class="main"><div id="extrarows" style="position:relative; padding:0; margin:0"><?php
echo tep_draw_file_field('attach_file[0]', 'size="44"');
?>
</div></td>
<td><?php
echo '<a href="javascript:void(0)" onclick="addFileRows(document.mail_form.extrarows);">' . tep_image(DIR_WS_ICONS . 'icon_arrow_down.png', 'Add more rows for file attachments') . '</a>';
?>
</td>
</tr>
<tr>
<td><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td valign="top" class="main"><?php
示例2: array
$contents[] = array('text' => '<br>' . tep_draw_checkbox_field('download', 'yes') . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
} else {
$contents[] = array('text' => '<br>' . tep_draw_radio_field('download', 'yes', true) . ' ' . TEXT_INFO_DOWNLOAD_ONLY . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS);
}
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_backup.gif', IMAGE_BACKUP) . ' <a href="' . tep_href_link(FILENAME_BACKUP) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'restore':
$heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
$contents[] = array('text' => tep_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="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restorenow') . '">' . tep_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'restorelocal':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_RESTORE_LOCAL . '</b>');
$contents = array('form' => tep_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>' . tep_draw_file_field('sql_file'));
$contents[] = array('text' => TEXT_INFO_RESTORE_LOCAL_RAW_FILE);
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_restore.gif', IMAGE_RESTORE) . ' <a href="' . tep_href_link(FILENAME_BACKUP) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
$contents = array('form' => tep_draw_form('delete', FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br><b>' . $buInfo->file . '</b>');
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_delete.gif', IMAGE_DELETE) . ' <a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
default:
if (isset($buInfo) && is_object($buInfo)) {
$heading[] = array('text' => '<b>' . $buInfo->date . '</b>');
$contents[] = array('align' => 'center', 'text' => '<a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=restore') . '">' . tep_image_button('button_restore.gif', IMAGE_RESTORE) . '</a> <a href="' . tep_href_link(FILENAME_BACKUP, 'file=' . $buInfo->file . '&action=delete') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>');
$contents[] = array('text' => '<br>' . TEXT_INFO_DATE . ' ' . $buInfo->date);
示例3: array
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</b>');
$contents = array('form' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=update_category&cPath=' . $cPath, 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('categories_id', $cInfo->categories_id));
$contents[] = array('text' => TEXT_EDIT_INTRO);
$category_inputs_string = '';
$languages = tep_get_languages();
// echo "HIER".DIR_WS_CATALOG_IMAGES . $cInfo->categories_image. $cInfo->categories_name;
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$category_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', tep_get_category_name($cInfo->categories_id, $languages[$i]['id']));
}
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$category_short_inputs_string .= '<br>' . tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('short_description[' . $languages[$i]['id'] . ']', tep_get_category_short_description($cInfo->categories_id, $languages[$i]['id']));
}
$contents[] = array('text' => '<br>' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
$contents[] = array('text' => '<br>' . TEXT_EDIT_SHORT_DESCRIPTION . $category_short_inputs_string);
$contents[] = array('text' => '<br>' . tep_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>' . tep_draw_file_field('categories_image'));
$contents[] = array('text' => '<br>' . TEXT_EDIT_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
if ($cInfo->categories_status == 1) {
$online = true;
$offline = false;
} else {
$online = false;
$offline = true;
}
$contents[] = array('text' => '<br>' . TEXT_CATEGORIES_STATUS . '<br>' . tep_draw_radio_field('categories_status', 1, $online) . ON . '<br>' . tep_draw_radio_field('categories_status', 0, $offline) . OFF);
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_save.gif', IMAGE_SAVE) . ' <a href="' . tep_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&cID=' . $cInfo->categories_id) . '">' . tep_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' => tep_draw_form('categories', FILENAME_CATEGORIES, 'action=delete_category_confirm&cPath=' . $cPath) . tep_draw_hidden_field('categories_id', $cInfo->categories_id));
$contents[] = array('text' => TEXT_DELETE_CATEGORY_INTRO);
示例4: tep_draw_separator
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo tep_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 tep_draw_file_field('banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . DIR_FS_CATALOG_IMAGES . tep_draw_input_field('banners_image_local', isset($bInfo->banners_image) ? $bInfo->banners_image : '');
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo tep_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: tep_draw_separator
<?php
}
?>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_CATEGORY_IMAGE;
?>
</td>
<td class="main"><?php
echo tep_draw_separator('pixel_trans.gif', '18', '12') . ' ' . tep_draw_file_field('image') . (tep_not_null($cInfo->image) ? '<br><span class="smallText">' . tep_draw_separator('pixel_trans.gif', '18', '12') . ' ' . $cInfo->image . ' ' . tep_draw_checkbox_field('image_delete', '1', false) . TEXT_IMAGE_DELETE . '</span>' : '');
?>
</td>
</tr>
</table>
<?php
echo tep_load_blocks($cInfo->categories_id, 'boards_category');
?>
<table border="0" cellspacing="0" cellpadding="1" width="100%">
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '10', '10');
?>
</td>
</tr>
<?php
示例6: tep_draw_input_field
echo ' <th>' . TABLE_HEADING_IMAGE . '</th>' . "\n";
}
?>
<th class="calign"><?php
echo TABLE_HEADING_ORDER;
?>
</th>
</tr>
<tr>
<td><div class="rpad"><?php
echo tep_draw_input_field('name');
?>
</div></td>
<?php
if ($name_array['image_status'] == '1') {
echo ' <td>' . tep_draw_file_field('image') . '</td>' . "\n";
}
?>
<td class="calign"><?php
echo tep_draw_input_field('order', '', 'size="5"');
?>
</td>
</tr>
<?php
$buttons = array('<a href="' . tep_href_link($g_script, tep_get_all_get_params('action') . 'action=options_list') . '">' . tep_image_button('button_back.gif', IMAGE_BACK) . '</a>', tep_image_submit('button_insert.gif', IMAGE_INSERT));
?>
</table><div class="formButtons"><?php
echo implode('', $buttons);
?>
</div></form></div>
</div>
示例7: tep_draw_pull_down_menu
<tr>
<td class="main" valign="top"><?php echo TEXT_BANNERS_GROUP; ?></td>
<td class="main"><?php echo tep_draw_pull_down_menu('affiliate_banners_group', $groups_array, $abInfo->affiliate_banners_group) . TEXT_BANNERS_NEW_GROUP . '<br>' . tep_draw_input_field('new_affiliate_banners_group', '', '', ((sizeof($groups_array) > 0) ? false : true)); ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_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 tep_draw_file_field('affiliate_banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . DIR_FS_CATALOG_IMAGES . 'banners/' . tep_draw_input_field('affiliate_banners_image_local', $abInfo->affiliate_banners_image);
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main"><?php
echo TEXT_BANNERS_IMAGE_TARGET;
?>
</td>
<td class="main"><?php
示例8: tep_href_link
</div>
<?php
}
?>
</div>
<div class="bounder inimg vmargin add_field_section">
<label class="floater"><?php
echo TEXT_INFO_ATTACH_FILE . ':';
?>
</label>
<div class="floater rspacer"><?php
echo '<a href="' . tep_href_link($g_script, tep_get_all_get_params()) . '" class="add_button">' . tep_image(DIR_WS_ICONS . 'icon_arrow_down.png', TEXT_INFO_ADD_FILES) . '</a>';
?>
</div>
<div class="floater add_field"><?php
echo tep_draw_file_field('attach_file[]', 'class="wider"');
?>
</div>
</div>
<div class="formButtons">
<?php
if ($subaction != 'new') {
$buttons[] = '<a href="' . tep_href_link($g_script, tep_get_all_get_params('he_id', 'ticket_id', 'action', 'subaction') . 'action=view&he_id=' . $entry['helpdesk_entries_id']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
} else {
$buttons[] = '<a href="' . tep_href_link($g_script, tep_get_all_get_params('he_id', 'action', 'subaction')) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>';
}
$buttons[] = tep_image_submit('button_confirm.gif', IMAGE_CONFIRM, 'class="dflt" name="update"');
echo implode('', $buttons);
?>
</div>
示例9: array
?>
</div>
<?php
$heading = array();
$contents = array();
switch ($action) {
case 'edit':
$content_query = $g_db->query("select auto_id, content_id, content_name, content_text, content_type, filename, sort_id, status_id from " . TABLE_DOWNLOAD . " where auto_id = '" . (int) $ddID . "'");
$content_array = $g_db->fetch_array($content_query);
$heading[] = array('text' => '<b>' . sprintf(TEXT_HEADING_EDIT_CONTENT, $content_array['content_name']) . '</b>');
$contents[] = array('form' => tep_draw_form('content_edit', $g_script, tep_get_all_get_params('action', 'ddID') . 'ddID=' . $content_array['auto_id'] . '&action=edit_confirm', 'post', 'enctype="multipart/form-data"') . tep_draw_hidden_field('auto_id', $content_array['auto_id']));
$contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'update_entry.png', IMAGE_EDIT));
$contents[] = array('text' => TEXT_INFO_EDIT_CONTENT_INTRO);
$contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_NAME . '<br />' . tep_draw_input_field('content_name', $content_array['content_name'], 'class="wider"'));
$contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_TEXT . '<br />' . tep_draw_textarea_field('content_text', $content_array['content_text'], '', 12));
$contents[] = array('text' => TEXT_INFO_ATTACH_FILE . '<br />' . tep_draw_file_field('attach_file', 'class="wider"'));
$contents[] = array('class' => 'rpad', 'text' => TEXT_INFO_FILENAME . '<br />' . tep_draw_input_field('direct_filename', $content_array['filename'], 'class="wider"'));
$contents[] = array('text' => TEXT_INFO_SORT . '<br />' . tep_draw_input_field('sort_id', $content_array['sort_id'], 'size="2" maxlength="2"'));
$contents[] = array('text' => tep_draw_hidden_field('content_type', $content_array['content_type']) . tep_draw_hidden_field('content_id', $content_array['content_id']) . tep_draw_checkbox_field('status_id', 'on', $content_array['status_id'] == 1 ? true : false) . ' ' . TEXT_INFO_ENABLED);
$buttons = array('<a href="' . tep_href_link($g_script, tep_get_all_get_params('action', 'ddID') . 'ddID=' . $content_array['auto_id']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>', tep_image_submit('button_update.gif', IMAGE_UPDATE));
$contents[] = array('class' => 'calign', 'text' => implode('', $buttons));
break;
case 'delete':
if ($rows > 0 && isset($ddInfo) && is_object($ddInfo)) {
$content_query = $g_db->query("select auto_id, content_name from " . TABLE_DOWNLOAD . " where auto_id = '" . (int) $ddID . "'");
$content_array = $g_db->fetch_array($content_query);
$heading[] = array('text' => '<b>' . sprintf(TEXT_HEADING_DELETE_CONTENT, $content_array['content_name']) . '</b>');
$contents[] = array('form' => tep_draw_form('form_content', $g_script, tep_get_all_get_params('action', 'ddID') . 'ddID=' . $ddID . '&action=delete_confirm') . tep_draw_hidden_field('auto_id', $content_array['auto_id']));
$contents[] = array('class' => 'calign', 'text' => tep_image(DIR_WS_IMAGES . 'final_notice.png', IMAGE_CONFIRM));
$contents[] = array('text' => TEXT_INFO_DELETE_CONTENT_INTRO);
$contents[] = array('text' => TEXT_INFO_NAME . '<br /><b>' . $content_array['content_name'] . '</b>');
示例10: str_replace
?>
';
var newText<?php
echo $i;
?>
= '<?php
echo str_replace("'", "\\'", '' . tep_draw_checkbox_field('boards_images_delete[' . $i . ']', '1', true, 'onclick="if (this.checked==false) document.getElementById(\'boards_images' . $i . '\').innerHTML = origText' . $i . ';"') . ' <a href="' . $images_dir . $images[$i] . '" target="_blank" onmouseover="document.getElementById(\'bimages' . $i . '\').style.display = \'\';" onmouseout="document.getElementById(\'bimages' . $i . '\').style.display = \'none\';" id="bimg' . $i . '">' . BOARDS_IMAGE_DELETE . '</a>');
?>
';
//--></script>
<?php
}
?>
<tr>
<td><?php
echo '<span style="position: absolute; display: none;" id="bimages' . $i . '">' . tep_image($images_dir . $images[$i], $adv_info['boards_name'], '', '', 'style="border: 1px solid black; margin-left: 30px; margin-top: -100px;"') . '</span>' . tep_draw_file_field('boards_images[' . $i . ']') . tep_draw_hidden_field('boards_existing_images[' . $i . ']', $images[$i]);
?>
</td>
<td width="50%" align="right" id="boards_images<?php
echo $i;
?>
"><?php
if (tep_not_null($images[$i]) && file_exists(DIR_FS_CATALOG . $images_dir . $images[$i])) {
echo $orig_text;
} else {
echo ' ';
}
?>
</td>
</tr>
<?php
示例11: tep_draw_separator
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" width="250" valign="top"><?php
echo TEXT_BANNERS_IMAGE;
?>
</td>
<td class="main"><?php
echo tep_draw_file_field('banners_image') . ' ' . TEXT_BANNERS_IMAGE_LOCAL . '<br>' . DIR_FS_CATALOG_IMAGES . 'banners/' . tep_draw_input_field('banners_image_local', isset($bInfo->banners_image) ? preg_replace('/^banners\\//', '', $bInfo->banners_image) : '');
?>
</td>
</tr>
<tr>
<td colspan="2"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" width="250"><?php
echo TEXT_BANNERS_IMAGE_TARGET;
?>
</td>
<td class="main"><?php
示例12: array
for ($j = 0; $j < 10; $j++) {
if (isset($pInfo->products_images[$j])) {
$image = $pInfo->products_images[$j];
} else {
$image = array();
}
?>
<tr>
<td colspan="3"><?php
echo tep_draw_separator('pixel_trans.gif', '1', '5');
?>
</td>
</tr>
<tr valign="top">
<td class="smallText"><?php
echo tep_draw_file_field('products_images_' . $j);
if (tep_not_null($image['image']) && file_exists(DIR_FS_CATALOG_IMAGES . $image['image'])) {
echo '<br />' . "\n" . '<a href="" onMouseOver="document.getElementById(\'p_image_' . $j . '\').style.display = \'\';" onMouseOut="document.getElementById(\'p_image_' . $j . '\').style.display = \'none\';" onClick="return false;"><u>' . $image['image'] . '</u></a> ' . tep_draw_checkbox_field('delete_additional_' . $j, '1', false) . TEXT_DELETE_IMAGE . '<div id="p_image_' . $j . '" style="display: none; position: absolute;">' . tep_image(DIR_WS_CATALOG_IMAGES . $image['image'], '') . '</div>';
}
echo tep_draw_hidden_field('products_images_id[' . $j . ']', $image['id']);
?>
</td>
<td> </td>
<td class="main"><?php
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
echo tep_image(DIR_WS_CATALOG_IMAGES . $languages[$i]['image'], $languages[$i]['name']) . ' ' . tep_draw_input_field('products_images_title[' . $j . '][' . $languages[$i]['id'] . ']', isset($products_images_title[$j][$languages[$i]['id']]) ? $products_images_title[$j][$languages[$i]['id']] : tep_get_products_images_title($image['id'], $languages[$i]['id']), 'size="40"') . '<br />';
}
?>
</td>
</tr>
<?php
示例13: array
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_LINK . '<br>' . tep_draw_input_field('slideshow_link', '', ' size=32'));
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_TARGET . '<br>' . tep_draw_input_field('slideshow_target'));
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_ACTIVE . '<br>' . tep_select_option(array('yes', 'no'), slideshow_active, 'yes'));
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_CG_HIDE . '<br>' . tep_draw_input_field('slideshow_cg_hide'));
$customers_group_query = tep_db_query("select customers_group_id, customers_group_name from " . TABLE_CUSTOMERS_GROUPS . " order by customers_group_id");
while ($customers_group = tep_db_fetch_array($customers_group_query)) {
$contents[] = array('text' => $customers_group['customers_group_id'] . ' = ' . $customers_group['customers_group_name']);
}
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_SORT_ORDER . '<br>' . tep_draw_input_field('slideshow_sort_order'));
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . tep_href_link(FILENAME_SLIDESHOW, 'page=' . $_GET['page']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'edit':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_SLIDESHOW . '</b>');
$contents = array('form' => tep_draw_form('links', FILENAME_SLIDESHOW, 'page=' . $_GET['page'] . '&tID=' . $trInfo->slideshow_id . '&action=save', 'POST', ' enctype="multipart/form-data"'));
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_IMAGE . '<br>' . tep_draw_file_field('slideshow_image') . '<br>' . $trInfo->slideshow_image);
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_TITLE . '<br>' . tep_draw_input_field('slideshow_title', $trInfo->slideshow_title, ' size=32'));
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_LINK . '<br>' . tep_draw_input_field('slideshow_link', $trInfo->slideshow_link, ' size=32'));
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_TARGET . '<br>' . tep_draw_input_field('slideshow_target', $trInfo->slideshow_target));
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_ACTIVE . '<br>' . tep_select_option(array('yes', 'no'), slideshow_active, $trInfo->slideshow_active));
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_CG_HIDE . '<br>' . tep_draw_input_field('slideshow_cg_hide', $trInfo->slideshow_cg_hide));
$customers_group_query = tep_db_query("select customers_group_id, customers_group_name from " . TABLE_CUSTOMERS_GROUPS . " order by customers_group_id");
while ($customers_group = tep_db_fetch_array($customers_group_query)) {
$contents[] = array('text' => $customers_group['customers_group_id'] . ' = ' . $customers_group['customers_group_name']);
}
$contents[] = array('text' => '<br>' . TEXT_SLIDESHOW_SORT_ORDER . '<br>' . tep_draw_input_field('slideshow_sort_order', $trInfo->slideshow_sort_order));
$contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_SLIDESHOW, 'page=' . $_GET['page'] . '&tID=' . $trInfo->slideshow_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
break;
case 'delete':
$heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_SLIDESHOW . '</b>');
$contents = array('form' => tep_draw_form('links', FILENAME_SLIDESHOW, 'page=' . $_GET['page'] . '&tID=' . $trInfo->slideshow_id . '&action=deleteconfirm'));
示例14: tep_draw_file_field
<?php
for ($img = 1; $img <= NO_OF_DYNAMIC_MOPICS; $img++) {
$next = $img;
$next++;
if (!file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $base_image . '_' . $img . $ext) && file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $base_image . '_' . $next . $ext)) {
echo '<tr class="messageStackError">';
} else {
echo '<tr bgcolor="#eeeeee">';
}
?>
<td class="main"><?php
echo TEXT_EXTRA_IMAGE . ' (' . $img . ')';
?>
</td>
<td class="main"><?php
echo ' ' . tep_draw_file_field('products_image_' . $img);
?>
</td>
<td class="main">
<?php
if (file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $base_image . '_' . $img . $ext)) {
echo ' ' . $base_image . '_' . $img . $ext . '</a';
}
?>
</td>
<td class="main" align="center">
<?php
if (file_exists(DIR_FS_CATALOG . DIR_WS_IMAGES . DYNAMIC_MOPICS_BIGIMAGES_DIR . $base_image . '_' . $img . $ext)) {
echo tep_draw_checkbox_field('delete_image' . $img);
}
?>
示例15: reset
reset($boards_conditions_array);
while (list($condition_id, $condition_descr) = each($boards_conditions_array)) {
echo tep_draw_radio_field('boards_condition', $condition_id, $condition_id == $adv_info['boards_condition']) . ' ' . $condition_descr . '<br />' . "\n";
}
?>
</td>
</tr>
<tr>
<td width="200"><?php
echo BOARDS_ENTRY_IMAGES;
?>
</td>
<td id="b_images"><script language="javascript" type="text/javascript"><!--
var k = 0;
var newField = '<?php
echo tep_draw_input_field('', '+', 'style="width: 30px; text-align: center;" onclick="if (this.value!=\\\'–\\\') { this.value = \\\'–\\\'; if (k < 10) { document.getElementById(\\\'b_images\\\').innerHTML += newField; k ++; } }"', 'button', false) . ' ' . tep_draw_file_field('boards_images[]') . '<br />';
?>
';
document.write(newField);
//--></script></td>
</tr>
</table>
</fieldset>
<fieldset>
<legend><?php
echo BOARDS_SETTINGS_TITLE;
?>
</legend>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="200"><?php