• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP tep_draw_file_field函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了tep_draw_file_field函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:31,代码来源:mail.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) . '&nbsp;<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>&nbsp;<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) . '&nbsp;<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);
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:backup.php


示例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']) . '&nbsp;' . 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']) . '&nbsp;' . 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);
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:categories.php


示例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 
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:banner_manager.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') . '&nbsp;' . tep_draw_file_field('image') . (tep_not_null($cInfo->image) ? '<br><span class="smallText">' . tep_draw_separator('pixel_trans.gif', '18', '12') . '&nbsp;' . $cInfo->image . ' &nbsp; ' . 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 
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:boards.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>
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:31,代码来源:form_fields.php


示例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 
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:affiliate_banners.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>
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:31,代码来源:helpdesk.php


示例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) . '&nbsp;' . 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>');
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:31,代码来源:admin_download.php


示例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 '&nbsp;';
            }
            ?>
</td>
		  </tr>
<?php 
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:account_boards.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 
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:banner_manager.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> &nbsp; ' . 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>&nbsp;</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']) . '&nbsp;' . 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 
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:categories.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) . '&nbsp;<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'] . '&amp;tID=' . $trInfo->slideshow_id . '&amp;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) . '&nbsp;<a href="' . tep_href_link(FILENAME_SLIDESHOW, 'page=' . $_GET['page'] . '&amp;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'] . '&amp;tID=' . $trInfo->slideshow_id . '&amp;action=deleteconfirm'));
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:slideshow.php


示例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 '&nbsp;' . 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 '&nbsp;' . $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);
    }
    ?>
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:product_image_upload.php


示例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!=\\\'&ndash;\\\') { this.value = \\\'&ndash;\\\'; 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 
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:boards.php


示例16: array

     $contents = array('form' => tep_draw_form('languages', FILENAME_LANGUAGES, 'action=insert', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . tep_draw_input_field('name'));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . tep_draw_input_field('code'));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . tep_draw_file_field('image'));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order'));
     $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('default', 'on') . ' ' . TEXT_SET_DEFAULT);
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_insert.gif', IMAGE_INSERT) . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $HTTP_GET_VARS['lID']) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_EDIT_LANGUAGE . '</strong>');
     $contents = array('form' => tep_draw_form('languages', FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_NAME . '<br>' . tep_draw_input_field('name', $lInfo->name));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_CODE . '<br>' . tep_draw_input_field('code', $lInfo->code));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_IMAGE . '<br>' . tep_draw_file_field('image') . (tep_not_null($lInfo->image) ? '<br>' . DIR_WS_CATALOG_IMAGES . '<strong>' . $lInfo->image . '</strong>' : ''));
     $contents[] = array('text' => '<br>' . TEXT_INFO_LANGUAGE_SORT_ORDER . '<br>' . tep_draw_input_field('sort_order', $lInfo->sort_order, 'size="3"'));
     if ($lInfo->default_status == '0') {
         $contents[] = array('text' => '<br>' . tep_draw_checkbox_field('default', 'on') . ' ' . TEXT_SET_DEFAULT);
     }
     $contents[] = array('align' => 'center', 'text' => '<br>' . tep_image_submit('button_update.gif', IMAGE_UPDATE) . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<strong>' . TEXT_INFO_HEADING_DELETE_LANGUAGE . '</strong>');
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br><strong>' . $lInfo->name . '</strong>');
     $contents[] = array('align' => 'center', 'text' => '<br>' . ($remove_language ? '<a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id . '&action=deleteconfirm') . '">' . tep_image_button('button_delete.gif', IMAGE_DELETE) . '</a>' : '') . ' <a href="' . tep_href_link(FILENAME_LANGUAGES, 'page=' . $HTTP_GET_VARS['page'] . '&lID=' . $lInfo->languages_id) . '">' . tep_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (is_object($lInfo)) {
         $heading[] = array('text' => '<strong>' . $lInfo->name . '</strong>');
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:languages.php


示例17: tep_draw_form

				</table></td>
			  </tr>
			  <tr>
				<td colspan="6"><table width="100%" border="0" cellspacing="0" cellpadding="2">
				  <tr>
<?php 
    if (SHOP_ID == 1) {
        echo tep_draw_form('download', FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=upload', 'post', 'enctype="multipart/form-data"');
        $amazon_shops = array(array('id' => '', 'text' => TEXT_UPLOAD_ORDERS_CHOOSE_SHOP));
        $amazon_shops_query = tep_db_query("select shops_id, shops_name from " . TABLE_SHOPS . " where shops_name like '%amazon%' or shops_name like '%barnes%' order by sort_order, shops_name");
        while ($amazon_shops_row = tep_db_fetch_array($amazon_shops_query)) {
            $amazon_shops[] = array('id' => $amazon_shops_row['shops_id'], 'text' => $amazon_shops_row['shops_name']);
        }
        ?>
					<td class="smallText"><?php 
        echo tep_draw_file_field('amazon_file', false, 'size="8"');
        ?>
<br /><?php 
        echo tep_draw_checkbox_field('upload_file_back', '1', false);
        ?>
загрузка файла-подтверждения</td>
					<td class="smallText"><?php 
        echo tep_draw_pull_down_menu('amazon_shop_id', $amazon_shops);
        ?>
<br /><a href="<?php 
        echo tep_href_link(FILENAME_ORDERS, 'action=download_bn_file');
        ?>
">Скачать файл заказов B&N</a></td>
					<td class="smallText"><?php 
        echo tep_image_submit('button_upload.gif', IMAGE_UPLOAD);
        ?>
开发者ID:rabbit-source,项目名称:setbook.ru,代码行数:31,代码来源:orders.php


示例18: tep_draw_form

?>
<div id="upload_result"></div>
<?php 
if (empty($action)) {
    ?>
    <div class="comboHeading" style="border: 1px solid #777;">
      <?php 
    echo tep_draw_form("insert", $g_script, 'action=insert', 'post', 'id="core_upload_form" enctype="multipart/form-data"');
    ?>
        <div><?php 
    echo TEXT_FILE_UPLOAD_FOLDER . '&nbsp;' . basename(DIR_WS_CATALOG_IMAGES) . '/' . $sub_folder;
    ?>
</div>
        <div style="padding: 8px 0px 8px 0px;">
<?php 
    echo TEXT_FILE_UPLOAD . '&nbsp;' . tep_draw_file_field('image');
    echo tep_draw_hidden_field('module', 'image_upload');
    if (!empty($sub_folder)) {
        echo tep_draw_hidden_field('sub_path', $sub_folder);
    }
    ?>
        </div>
        <div style="display: none;"><?php 
    echo tep_image_submit('button_insert.gif', IMAGE_INSERT, 'class="upload_button"');
    ?>
</div>
      </form>
      <div style="clear: both; padding: 8px 0px 4px 0px;"><hr /></div>
      <div id="#image_list">
<?php 
    $j = count($subdirs_array);
开发者ID:enigma1,项目名称:i-metrics-cms,代码行数:31,代码来源:js_image_upload.php


示例19: tep_draw_separator

    } else {
        if (DEBUG_MODE == 'on') {
            ?>
          <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_TEMPLATE_FILENAME;
            ?>
</td>
   

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP tep_draw_form函数代码示例发布时间:2022-05-23
下一篇:
PHP tep_draw_checkbox_field函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap