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

PHP zen_draw_file_field函数代码示例

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

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



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


示例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') . '&nbsp;' . zen_draw_file_field('products_image') . '&nbsp;' . ($pInfo->products_image != '' ? TEXT_IMAGE_CURRENT . $pInfo->products_image : TEXT_IMAGE_CURRENT . '&nbsp;' . NONE) . zen_draw_hidden_field('products_previous_image', $pInfo->products_image);
?>
</td>
                <td valign = "center" class="main"><?php 
echo TEXT_PRODUCTS_IMAGE_DIR;
?>
&nbsp;<?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>
开发者ID:kirkbauer2,项目名称:kirkzc,代码行数:31,代码来源:collect_info.php


示例3: zen_image

     $manufacturer_inputs_string .= '<br>' . zen_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . 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"'));
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:admin.php


示例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 
开发者ID:wwxgitcat,项目名称:zencart_v1.0,代码行数:31,代码来源:banner_manager.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) {
开发者ID:bitweaver,项目名称:commerce,代码行数:31,代码来源:collect_info.php


示例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>&nbsp;' . $clips->fields['clip_filename'] . '<br />');
     $clips->MoveNext();
 }
开发者ID:happyxlq,项目名称:lt_svn,代码行数:31,代码来源:media_manager.php


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


示例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 
    }
    ?>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:tpl_product_info_simple_attrbute_display.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 />
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:edit.php


示例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'] . '&amp;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 . ' &nbsp; ' . 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) . '&nbsp;<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'] . '&amp;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) . '&nbsp;' . ENTRY_EMAIL_HTML_DISPLAY . '&nbsp;&nbsp;&nbsp;' . zen_draw_radio_field('email_format', 'TEXT', $email_pref_text) . '&nbsp;' . ENTRY_EMAIL_TEXT_DISPLAY);
            $contents[] = array('align' => 'center', 'text' => '<br />' . zen_image_submit('button_insert.gif', IMAGE_INSERT) . '&nbsp;<a href="' . zen_href_link(FILENAME_SUBSCRIPTION_MANAGER, 'page=' . $_GET['page']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
            break;
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:subscription_manager.php


示例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";
}
?>
开发者ID:bislewl,项目名称:zencart_coupon_import_tool,代码行数:31,代码来源:coupon_import_tool.php


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


示例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');
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:admin.php


示例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>
开发者ID:homework-bazaar,项目名称:zencart-sugu,代码行数:31,代码来源:edit.php


示例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;
            ?>
&nbsp;<?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>
开发者ID:R-Future,项目名称:zencart,代码行数:31,代码来源:mail.php


示例16: zen_draw_file_field

		<td class="dataTableHeadingContent" align="center" style="width:250px;"><?php 
echo TABLE_HEADING_LOGO_IMG;
?>
</td>
		<td class="dataTableHeadingContent" align="center"><?php 
echo TABLE_HEADING_UPLOAD;
?>
</td>
	</tr>
	<tr>
		<td class="dataTableHeadingContent" align="center" ><img src="<?php 
echo DIR_WS_CATALOG_TEMPLATE . $template_dir . '/images/logo.gif';
?>
"> </td>
		<td class="dataTableHeadingContent" align="center" ><?php 
echo zen_draw_file_field('logoimg');
?>
		<?php 
echo zen_image_submit('button_save.gif', IMAGE_SAVE) . ' ' . TABLE_HEADING_MESSAGE;
?>
		</td>
	</tr>

</table>
</form>
<?php 
require DIR_WS_INCLUDES . 'footer.php';
?>
</body>
</html>
<?php 
开发者ID:happyxlq,项目名称:zencart_svn,代码行数:31,代码来源:setlogo.php


示例17: array

     $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 . '&nbsp;' . zen_draw_input_field('artists_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']) . '&nbsp;' . zen_draw_input_field('artists_url[' . $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=' . $_GET['mID']) . '">' . zen_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_RECORD_ARTIST . '</b>');
     $contents = array('form' => zen_draw_form('artists', FILENAME_RECORD_ARTISTS, 'page=' . $_GET['page'] . '&mID=' . $aInfo->artists_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $contents[] = array('text' => '<br />' . TEXT_RECORD_ARTIST_NAME . '<br>' . zen_draw_input_field('artists_name', htmlspecialchars($aInfo->artists_name, ENT_COMPAT, CHARSET, TRUE), zen_set_field_length(TABLE_RECORD_ARTISTS, 'artists_name')));
     $contents[] = array('text' => '<br />' . TEXT_RECORD_ARTIST_IMAGE . '<br>' . zen_draw_file_field('artists_image') . '<br />' . $aInfo->artists_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($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 . '&nbsp;' . 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++) {
开发者ID:bobjacobsen,项目名称:EventTools,代码行数:31,代码来源:record_artists.php


示例18: zen_draw_hidden_field

            if (isset($_POST['csv_format_name'])) {
                $return_button .= zen_draw_hidden_field('csv_format_name', $_POST['csv_format_name']);
            }
            break;
        case 'new':
        case 'edit':
        default:
            $return_button .= zen_draw_hidden_field('return_to', '');
    }
    $return_button .= '<input type="submit" value="' . PRODUCT_CSV_RETURN_TEXT . '" name="submit"/></form>';
    $format_types = $ProductCSV->getFormatTypes();
    $body = '              ' . zen_draw_form('csv_format', FILENAME_ADDON_MODULES_ADMIN, 'module=product_csv/csv_format&action=save', 'post', 'enctype="multipart/form-data"') . '
<table border="0" width="100%" cellspacing="0" cellpadding="0" class="tableLayout1">
<tr><th valign="top"><label for="csv_format_name">' . FORM_FORMAT_NAME . ': </label></th><td>' . zen_draw_input_field($name_csv_format_name, $csv_format_name, 'id="csv_format_name"' . $disable_format_name) . '</td></tr>
<tr><th><label for="csv_format_type">' . FORM_FORMAT_TYPE . ': </label></th><td>' . zen_draw_pull_down_menu($name_csv_format_type_id, $format_types, $csv_format_type_id, 'id="csv_format_type"' . $disable_format_type) . '</td></tr>' . $hidden_fields . '<tr><th>' . $setting_now . '</tr><tr><th>' . FORM_FORMAT_STEP1 . '</th><td>' . FORM_FORMAT_MESSAGE1 . '<br />' . zen_draw_hidden_field('MAX_FILE_SIZE', return_bytes(ini_get(upload_max_filesize))) . '
<label for="file">' . FORM_FORMAT_FILE . ': </label>' . zen_draw_file_field('file') . ' <input type="submit" name="upfile" value="' . FORM_FORMAT_UPLOAD . '" id="upfile" disabled="disabled" onclick="return checkName();"/></td></tr>
<tr><th>' . FORM_FORMAT_STEP2 . '</th><td>' . FORM_FORMAT_MESSAGE2 . '<br/>' . $setting_new . $save_button . '
</form>
              </td></tr></table>';
} else {
    // view all format
    $formats = $ProductCSV->getFormats();
    if (count($formats)) {
        $contents = '';
        $formats = $ProductCSV->getFormats();
        foreach ($formats as $val) {
            $contents .= '
<tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
<td class="dataTableContent">' . $val['csv_format_id'] . '</td>
<td class="dataTableContent">' . $val['csv_format_name'] . '</td>
<td class="dataTableContent">' . $val['csv_format_type_name'] . '</td>
开发者ID:homework-bazaar,<

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP zen_draw_form函数代码示例发布时间:2022-05-23
下一篇:
PHP zen_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