当前位置: 首页>>代码示例>>PHP>>正文


PHP oos_draw_input_field函数代码示例

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


在下文中一共展示了oos_draw_input_field函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: credit_selection

 function credit_selection()
 {
     global $aLang;
     global $oCurrencies;
     $sTheme = oos_var_prep_for_os($_SESSION['theme']);
     $sLanguage = oos_var_prep_for_os($_SESSION['language']);
     $image_submit = '<input type="image" name="submit_redeem" onClick="submitFunction()" src="' . 'themes/' . $sTheme . '/images/buttons/' . $sLanguage . '/redeem.gif" border="0" alt="' . $aLang['image_button_redeem_voucher'] . '" title = "' . $aLang['image_button_redeem_voucher'] . '">';
     $selection_string = '';
     $selection_string .= '<tr>' . "\n";
     $selection_string .= '  <td width="10"></td>';
     $selection_string .= '  <td class="main">' . "\n";
     $selection_string .= $aLang['text_enter_coupon_code'] . oos_draw_input_field('gv_redeem_code') . '</td>';
     $selection_string .= '  <td align="right">' . $image_submit . '</td>';
     $selection_string .= '  <td width="10"></td>';
     $selection_string .= '</tr>' . "\n";
     return $selection_string;
 }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:17,代码来源:ot_coupon.php

示例2: array

<?php 
    $heading = array();
    $contents = array();
    switch ($action) {
        case 'delete':
            $heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
            $contents = array('form' => oos_draw_form('file', $aFilename['file_manager'], 'info=' . urlencode($fInfo->name) . '&action=deleteconfirm'));
            $contents[] = array('text' => TEXT_DELETE_INTRO);
            $contents[] = array('text' => '<br /><b>' . $fInfo->name . '</b>');
            $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['file_manager'], 'info=' . urlencode($fInfo->name)) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
            break;
        case 'new_folder':
            $heading[] = array('text' => '<b>' . TEXT_NEW_FOLDER . '</b>');
            $contents = array('form' => oos_draw_form('folder', $aFilename['file_manager'], 'action=insert'));
            $contents[] = array('text' => TEXT_NEW_FOLDER_INTRO);
            $contents[] = array('text' => '<br />' . TEXT_FILE_NAME . '<br />' . oos_draw_input_field('folder_name'));
            $contents[] = array('align' => 'center', 'text' => '<br />' . ($directory_writeable ? oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) : '') . ' <a href="' . oos_href_link_admin($aFilename['file_manager'], 'info=' . urlencode($_GET['info'])) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
            break;
        case 'upload':
            $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_UPLOAD . '</b>');
            $contents = array('form' => oos_draw_form('file', $aFilename['file_manager'], 'action=processuploads', 'post', 'enctype="multipart/form-data"'));
            $contents[] = array('text' => TEXT_UPLOAD_INTRO);
            for ($i = 1; $i < 6; $i++) {
                $file_upload .= oos_draw_file_field('file_' . $i) . '<br />';
            }
            $contents[] = array('text' => '<br />' . $file_upload);
            $contents[] = array('align' => 'center', 'text' => '<br />' . ($directory_writeable ? oos_image_swap_submits('upload', 'upload_off.gif', IMAGE_UPLOAD) : '') . ' <a href="' . oos_href_link_admin($aFilename['file_manager'], 'info=' . urlencode($_GET['info'])) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
            break;
        default:
            if (isset($fInfo) && is_object($fInfo)) {
                $heading[] = array('text' => '<b>' . $fInfo->name . '</b>');
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:file_manager.php

示例3: oos_image

     for ($i = 0, $n = count($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']');
     }
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_MANUFACTURER . '</b>');
     $contents = array('form' => oos_draw_form('manufacturers', $aFilename['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 />' . oos_draw_input_field('manufacturers_name', $mInfo->manufacturers_name));
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_IMAGE . '<br />' . oos_draw_file_field('manufacturers_image') . '<br />' . $mInfo->manufacturers_image);
     $manufacturer_inputs_string = '';
     $languages = oos_get_languages();
     for ($i = 0, $n = count($languages); $i < $n; $i++) {
         $manufacturer_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('manufacturers_url[' . $languages[$i]['id'] . ']', oos_get_manufacturer_url($mInfo->manufacturers_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_MANUFACTURERS_URL . $manufacturer_inputs_string);
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_MANUFACTURER . '</b>');
     $contents = array('form' => oos_draw_form('manufacturers', $aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br /><b>' . $mInfo->manufacturers_name . '</b>');
     $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
     if ($mInfo->products_count > 0) {
         $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_products') . ' ' . TEXT_DELETE_PRODUCTS);
         $contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
     }
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['manufacturers'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:manufacturers.php

示例4: selection

 function selection()
 {
     global $oOrder, $aLang;
     if (MODULE_PAYMENT_PSIGATE_INPUT_MODE == 'Local') {
         for ($i = 1; $i < 13; $i++) {
             $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0, 0, 0, $i, 1, 2000)));
         }
         $today = getdate();
         for ($i = $today['year']; $i < $today['year'] + 10; $i++) {
             $expires_year[] = array('id' => strftime('%y', mktime(0, 0, 0, 1, 1, $i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
         }
         $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => $aLang['module_payment_psigate_text_credit_card_owner'], 'field' => $oOrder->billing['firstname'] . ' ' . $oOrder->billing['lastname']), array('title' => $aLang['module_payment_psigate_text_credit_card_number'], 'field' => oos_draw_input_field('psigate_cc_number')), array('title' => $aLang['module_payment_psigate_text_credit_card_expires'], 'field' => oos_draw_pull_down_menu('psigate_cc_expires_month', $expires_month) . '&nbsp;' . oos_draw_pull_down_menu('psigate_cc_expires_year', $expires_year))));
     } else {
         $selection = array('id' => $this->code, 'module' => $this->title);
     }
     return $selection;
 }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:17,代码来源:psigate.php

示例5: oos_draw_separator

    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo oos_draw_separator('trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_NEWSLETTER_TITLE;
    ?>
</td>
            <td class="main"><?php 
    echo oos_draw_input_field('title', $nInfo->title, '', true);
    ?>
</td>
          </tr>
          <tr>
            <td colspan="2"><?php 
    echo oos_draw_separator('trans.gif', '1', '10');
    ?>
</td>
          </tr>
          <tr>
            <td class="main" valign="top"><?php 
    echo TEXT_NEWSLETTER_CONTENT;
    ?>
</td>
            <td class="main"><?php 
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:newsletters.php

示例6: array

     $contents = array('form' => oos_draw_form('block', $aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=save', 'post', 'enctype="multipart/form-data"'));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $block_inputs_string = '';
     $languages = oos_get_languages();
     for ($i = 0, $n = count($languages); $i < $n; $i++) {
         $block_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('block_name[' . $languages[$i]['id'] . ']', oos_get_block_name($bInfo->block_id, $languages[$i]['id']));
     }
     eval('$value_field = ' . $bInfo->set_function . '"' . htmlspecialchars($bInfo->block_side) . '");');
     $contents[] = array('text' => '<br />' . TEXT_BLOCK_NAME . $block_inputs_string);
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_FUNCTION . ':</b><br />' . oos_draw_input_field('function', $bInfo->block_file));
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_CACHE . ':</b><br />' . oos_draw_input_field('block_cache', $bInfo->block_cache));
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_COLUMN . ':</b><br />' . $value_field);
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_STATUS . ':</b> ' . oos_draw_pull_down_menu('block_status', $block_status_array, $bInfo->block_status));
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_LOGIN . ':</b> ' . oos_draw_pull_down_menu('block_login_flag', $block_login_flag_array, $bInfo->block_login_flag));
     $contents[] = array('text' => '<br /><b>' . TEXT_BLOCK_PAGE . ':</b><br />' . oos_show_block_to_page($bInfo->block_id));
     $contents[] = array('text' => '<br /><b>' . TABLE_HEADING_SORT_ORDER . ':</b><br />' . oos_draw_input_field('sort_order', $bInfo->block_sort_order, 'size="2"'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_BLOCK . '</b>');
     $contents = array('form' => oos_draw_form('block', $aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_DELETE_INTRO);
     $contents[] = array('text' => '<br /><b>' . $bInfo->block_name . '</b>');
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($bInfo) && is_object($bInfo)) {
         $heading[] = array('text' => '<b>' . $bInfo->block_name . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['content_block'], 'page=' . $_GET['page'] . '&bID=' . $bInfo->block_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
         $contents[] = array('text' => '<br />' . TEXT_DATE_ADDED . ' ' . oos_date_short($bInfo->date_added));
         if (oos_is_not_null($bInfo->last_modified)) {
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:content_block.php

示例7: array

      $contents[] = array('text' => '<br />' . TEXT_INFO_TEXT_REPLY_NAME . $ticket_reply_inputs_string);
      $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
      $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('insert','insert_off.gif', IMAGE_INSERT) . ' <a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page']) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
      break;

    case 'edit':
      $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TEXT_REPLY . '</b>');

      $contents = array('form' => oos_draw_form('reply', $aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id  . '&action=save'));
      $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);

      $ticket_reply_inputs_string = '';
      $languages = oos_get_languages();
      for ($i = 0, $n = count($languages); $i < $n; $i++) {
        $ticket_reply_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('ticket_reply_name[' . $languages[$i]['id'] . ']', oos_get_ticket_reply_name($oInfo->ticket_reply_id, $languages[$i]['id']));
      }
      for ($i = 0, $n = count($languages); $i < $n; $i++) {
        $ticket_reply_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_textarea_field('ticket_reply_text[' . $languages[$i]['id'] . ']','soft', 50, 10,oos_get_ticket_reply_text($oInfo->ticket_reply_id, $languages[$i]['id']));
      }

      $contents[] = array('text' => '<br />' . TEXT_INFO_TEXT_REPLY_NAME . $ticket_reply_inputs_string);
      if (TICKET_DEFAULT_REPLY_ID != $oInfo->ticket_reply_id) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('default') . ' ' . TEXT_SET_DEFAULT);
      $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update','update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id) . '">' . oos_image_swap_button('cancel','cancel_off.gif', IMAGE_CANCEL) . '</a>');
      break;

    case 'delete':
      $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TEXT_REPLY . '</b>');

      $contents = array('form' => oos_draw_form('reply', $aFilename['ticket_reply'], 'page=' . $_GET['page'] . '&oID=' . $oInfo->ticket_reply_id  . '&action=deleteconfirm'));
      $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:30,代码来源:ticket_reply.php

示例8: oos_draw_separator

        <td><?php echo oos_draw_separator('trans.gif', '1', '10'); ?></td>
      </tr>
      <tr>
        <td align="right" class="main"><?php echo oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE) . ' <a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('action'))) .'">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>'; ?></td>
      </tr></form>
<?php
  } else {
?>
      <tr>
        <td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>
            <td class="pageHeading" align="right"><?php echo oos_draw_separator('trans.gif', 1, HEADING_IMAGE_HEIGHT); ?></td>
            <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0">
               <tr><?php echo oos_draw_form('search', $aFilename['customers'], '', 'get'); ?>
                 <td class="smallText" align="right"><?php echo HEADING_TITLE_SEARCH . ' ' . oos_draw_input_field('search'); ?></td>
               </form></tr>
              <tr><?php echo oos_draw_form('status', $aFilename['customers'], '', 'get'); ?>
              <td class="smallText" align="right"><?php echo HEADING_TITLE_STATUS . ' ' . oos_draw_pull_down_menu('status', array_merge(array(array('id' => '0', 'text' => TEXT_ALL_CUSTOMERS)), $customers_statuses_array), '0', 'onChange="this.form.submit();"'); ?></td>
          </form></tr>
        </table></td>
      </tr>
        </table></td>
      </tr>
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr class="dataTableHeadingRow">
                <td class="dataTableHeadingContent">*</td>
                <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_LASTNAME; ?></td>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:customers.php

示例9: array

     $contents[] = array('text' => TEXT_INFO_INSERT_INTRO);
     $contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_TITLE . '<br />' . oosTaxClassesPullDown('name="tax_class_id" style="font-size:10px"'));
     $contents[] = array('text' => '<br />' . TEXT_INFO_ZONE_NAME . '<br />' . oosGeoZonesPullDown('name="tax_zone_id" style="font-size:10px"'));
     $contents[] = array('text' => '<br />' . TEXT_INFO_TAX_RATE . '<br />' . oos_draw_input_field('tax_rate'));
     $contents[] = array('text' => '<br />' . TEXT_INFO_RATE_DESCRIPTION . '<br />' . oos_draw_input_field('tax_description'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('insert', 'insert_off.gif', IMAGE_INSERT) . '&nbsp;<a href="' . oos_href_link_admin($aFilename['tax_rates'], 'page=' . $_GET['page']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_TAX_RATE . '</b>');
     $contents = array('form' => oos_draw_form('rates', $aFilename['tax_rates'], 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=save'));
     $contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
     $contents[] = array('text' => '<br />' . TEXT_INFO_CLASS_TITLE . '<br />' . oosTaxClassesPullDown('name="tax_class_id" style="font-size:10px"', $trInfo->tax_class_id));
     $contents[] = array('text' => '<br />' . TEXT_INFO_ZONE_NAME . '<br />' . oosGeoZonesPullDown('name="tax_zone_id" style="font-size:10px"', $trInfo->geo_zone_id));
     $contents[] = array('text' => '<br />' . TEXT_INFO_TAX_RATE . '<br />' . oos_draw_input_field('tax_rate', $trInfo->tax_rate));
     $contents[] = array('text' => '<br />' . TEXT_INFO_RATE_DESCRIPTION . '<br />' . oos_draw_input_field('tax_description', $trInfo->tax_description));
     $contents[] = array('text' => '<br />' . TEXT_INFO_TAX_RATE_PRIORITY . '<br />' . oos_draw_input_field('tax_priority', $trInfo->tax_priority));
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('update', 'update_off.gif', IMAGE_UPDATE) . '&nbsp;<a href="' . oos_href_link_admin($aFilename['tax_rates'], 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_TAX_RATE . '</b>');
     $contents = array('form' => oos_draw_form('rates', $aFilename['tax_rates'], 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=deleteconfirm'));
     $contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
     $contents[] = array('text' => '<br /><b>' . $trInfo->tax_class_title . ' ' . number_format($trInfo->tax_rate, TAX_DECIMAL_PLACES) . '%</b>');
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . '&nbsp;<a href="' . oos_href_link_admin($aFilename['tax_rates'], 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 default:
     if (isset($trInfo) && is_object($trInfo)) {
         $heading[] = array('text' => '<b>' . $trInfo->tax_class_title . '</b>');
         $contents[] = array('align' => 'center', 'text' => '<a href="' . oos_href_link_admin($aFilename['tax_rates'], 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=edit') . '">' . oos_image_swap_button('edit', 'edit_off.gif', IMAGE_EDIT) . '</a> <a href="' . oos_href_link_admin($aFilename['tax_rates'], 'page=' . $_GET['page'] . '&tID=' . $trInfo->tax_rates_id . '&action=delete') . '">' . oos_image_swap_button('delete', 'delete_off.gif', IMAGE_DELETE) . '</a>');
         $contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . oos_date_short($trInfo->date_added));
         $contents[] = array('text' => '' . TEXT_INFO_LAST_MODIFIED . ' ' . oos_date_short($trInfo->last_modified));
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:tax_rates.php

示例10: oos_draw_password_field

</div>
			<div><?php 
echo oos_draw_password_field('password', '', 'class="inputbox" size="15"');
?>
</div>
<?php 
if (SHOW_CAPTCHA == '1') {
    ?>
			<div class="clr"></div>
			<div><img src="./captcha.php" alt="CAPTCHA"></div>
                        <div class="inputlabel"><?php 
    echo SECURITYCODE;
    ?>
</div>
			<div><?php 
    echo oos_draw_input_field('captchastring', '', 'class="inputbox" size="15"');
    ?>
</div>
<?php 
}
?>

	        	<div align="left"><input type="submit" name="submit" class="button" value="Login" /></div>
                        <div class="ctr"><a href="<?php 
echo oos_href_link_admin($aFilename['password_forgotten'], '', 'SSL') . '">' . TEXT_PASSWORD_FORGOTTEN;
?>
</a></div>


        	</div>
			</form>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:login.php

示例11: oos_image

         }
     }
     $shopping_cart_detail .= oos_image(OOS_IMAGES . $sProductImage, $products[$i]['name'], SMALL_IMAGE_WIDTH * SHOPPING_CART_MINI_IMAGE, SMALL_IMAGE_HEIGHT * SHOPPING_CART_MINI_IMAGE) . '</a></td>' . "\n";
 }
 // Delete box only for shopping cart
 if ($sPage == $aPages['shopping_cart']) {
     $shopping_cart_detail .= '    <td align="center" valign="top">' . oos_draw_checkbox_field('cart_delete[]', $products[$i]['id']) . '</td>' . "\n";
 }
 // Quantity box or information as an input box or text
 if (DECIMAL_CART_QUANTITY == '1') {
     $quantity = number_format($products[$i]['quantity'], 2);
 } else {
     $quantity = number_format($products[$i]['quantity']);
 }
 if ($sPage == $aPages['shopping_cart']) {
     $shopping_cart_detail .= '    <td align="center" valign="top" class ="main">' . oos_draw_input_field('cart_quantity[]', $quantity, 'size="4"') . oos_draw_hidden_field('products_id[]', $products[$i]['id']) . '<br />' . (oos_get_products_quantity_order_min($products[$i]['id']) > 1 ? $aLang['products_order_qty_min_text_cart_short'] . oos_get_products_quantity_order_min($products[$i]['id']) : '') . (oos_get_products_quantity_order_units($products[$i]['id']) > 1 ? $aLang['products_order_qty_unit_text_cart_short'] . oos_get_products_quantity_order_units($products[$i]['id']) : "") . '</td>' . "\n";
 } else {
     $shopping_cart_detail .= '    <td align="center" valign="top" class ="main">' . $quantity . '</td>' . "\n";
 }
 if (PRODUCT_LIST_MODEL > 0) {
     if ($sPage == $aPages['shopping_cart']) {
         $shopping_cart_detail .= '    <td valign="top" class="main"><a href="' . oos_href_link($aPages['product_info'], 'products_id=' . $products[$i]['id']) . '">' . $products[$i]['model'] . '</a></td>' . "\n";
     }
 }
 // Product name, with or without link
 if ($sPage == $aPages['shopping_cart']) {
     $shopping_cart_detail .= '    <td valign="top" class="main"><a href="' . oos_href_link($aPages['product_info'], 'products_id=' . $products[$i]['id']) . '"><b>' . $products[$i]['name'] . '</b></a>';
 } else {
     $shopping_cart_detail .= '    <td valign="top" class="main"><b>' . $products[$i]['name'] . '</b>';
 }
 // Display marker if stock quantity insufficient
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:order_details.php

示例12: oos_draw_input_field

&nbsp;&nbsp;&nbsp;</nobr></td>
                      <td class="dataTableContent"><?php 
    echo oos_draw_input_field('admin_lastname', $myAccount['admin_lastname']);
    ?>
</td>
                    </tr>
                    <tr>
                      <td class="dataTableContent"><nobr><?php 
    echo TEXT_INFO_EMAIL;
    ?>
&nbsp;&nbsp;&nbsp;</nobr></td>
                      <td class="dataTableContent"><?php 
    if ($_GET['error']) {
        echo oos_draw_input_field('admin_email_address', $myAccount['admin_email_address']) . ' <nobr>' . TEXT_INFO_ERROR . '</nobr>';
    } else {
        echo oos_draw_input_field('admin_email_address', $myAccount['admin_email_address']);
    }
    ?>
</td>
                    </tr>
                    <tr>
                      <td class="dataTableContent"><nobr><?php 
    echo TEXT_INFO_PASSWORD;
    ?>
&nbsp;&nbsp;&nbsp;</nobr></td>
                      <td class="dataTableContent"><?php 
    echo oos_draw_password_field('admin_password');
    ?>
</td>
                    </tr>
                    <tr>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:admin_account.php

示例13: oos_get_languages

     $informations_inputs_string = '';
     $informations_description_inputs_string = '';
     $informations_heading_title_inputs_string = '';
     $languages = oos_get_languages();
     for ($i = 0, $n = count($languages); $i < $n; $i++) {
         $informations_name_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('information_name[' . $languages[$i]['id'] . ']', oos_get_informations_name($mInfo->information_id, $languages[$i]['id']));
         $informations_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('information_url[' . $languages[$i]['id'] . ']', oos_get_informations_url($mInfo->information_id, $languages[$i]['id']));
         $informations_heading_title_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('information_heading_title[' . $languages[$i]['id'] . ']', oos_get_informations_heading_title($mInfo->information_id, $languages[$i]['id']));
         $informations_description_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_textarea_field('information_description[' . $languages[$i]['id'] . ']', 'soft', '100', '10', oos_get_informations_description($mInfo->information_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_INFORMATION_NAME . $informations_name_inputs_string);
     $contents[] = array('text' => '<br />' . TEXT_INFORMATION_IMAGE . '<br />' . oos_draw_file_field('information_image') . '<br />' . $mInfo->information_image);
     $contents[] = array('text' => '<br />' . TEXT_INFORMATION_URL . $informations_inputs_string);
     $contents[] = array('text' => '<br />' . TEXT_INFORMATION_HEADING_TITLE . $informations_heading_title_inputs_string);
     $contents[] = array('text' => '<br />' . TEXT_INFORMATION_DESCRIPTION . $informations_description_inputs_string);
     $contents[] = array('text' => '<br />' . TEXT_INFORMATION_SORT_ORDER . '<br />' . oos_draw_input_field('sort_order') . '<br />' . $mInfo->sort_order);
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['information'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->information_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete':
     if ($mInfo->information_id > 5) {
         $heading[] = array('text' => '<b>' . TEXT_HEADING_DELETE_INFORMATION . '</b>');
         $contents = array('form' => oos_draw_form('information', $aFilename['information'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->information_id . '&action=deleteconfirm'));
         $contents[] = array('text' => TEXT_DELETE_INTRO);
         $contents[] = array('text' => '<br /><b>' . $mInfo->information_name . '</b>');
         $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_image', '', true) . ' ' . TEXT_DELETE_IMAGE);
         $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['information'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->information_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     }
     break;
 default:
     if (isset($mInfo) && is_object($mInfo)) {
         $heading[] = array('text' => '<b>' . $mInfo->information_name . '</b>');
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:information.php

示例14: array

     break;
 case 'edit_category':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_EDIT_CATEGORY . '</b>');
     $contents = array('form' => oos_draw_form('categories', $aFilename['categories'], 'action=update_category&categories=' . $categories, 'post', 'enctype="multipart/form-data"') . oos_draw_hidden_field('categories_id', $cInfo->categories_id));
     $contents[] = array('text' => TEXT_EDIT_INTRO);
     $category_inputs_string = '';
     $languages = oos_get_languages();
     for ($i = 0, $n = count($languages); $i < $n; $i++) {
         $category_inputs_string .= '<br />' . oos_image(OOS_SHOP_IMAGES . 'flags/' . $languages[$i]['iso_639_2'] . '.gif', $languages[$i]['name']) . '&nbsp;' . oos_draw_input_field('categories_name[' . $languages[$i]['id'] . ']', oos_get_category_name($cInfo->categories_id, $languages[$i]['id']));
     }
     $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_NAME . $category_inputs_string);
     $contents[] = array('text' => '<br />' . oos_image(OOS_SHOP_IMAGES . $cInfo->categories_image, $cInfo->categories_name) . '<br />' . OOS_SHOP_IMAGES . '<br /><b>' . $cInfo->categories_image . '</b>');
     $contents[] = array('text' => '<br />' . TEXT_EDIT_CATEGORIES_IMAGE . '<br />' . oos_draw_file_field('categories_image'));
     $customers_statuses_array = oos_get_customers_statuses();
     $contents[] = array('text' => '<br />' . TEXT_ONLY_FOR_GROUP . '</br />' . oos_draw_pull_down_menu('group', array_merge(array(array('id' => '0', 'text' => PULL_DOWN_DEFAULT)), $customers_statuses_array), $cInfo->access));
     $contents[] = array('text' => '<br />' . TEXT_EDIT_SORT_ORDER . '<br />' . oos_draw_input_field('sort_order', $cInfo->sort_order, 'size="2"'));
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('save', 'save_off.gif', IMAGE_SAVE) . ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&cID=' . $cInfo->categories_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'delete_category':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CATEGORY . '</b>');
     $contents = array('form' => oos_draw_form('categories', $aFilename['categories'], 'action=delete_category_confirm&categories=' . $categories) . oos_draw_hidden_field('categories_id', $cInfo->categories_id));
     $contents[] = array('text' => TEXT_DELETE_CATEGORY_INTRO);
     $contents[] = array('text' => '<br /><b>' . $cInfo->categories_name . '</b>');
     if ($cInfo->childs_count > 0) {
         $contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_CHILDS, $cInfo->childs_count));
     }
     if ($cInfo->products_count > 0) {
         $contents[] = array('text' => '<br />' . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $cInfo->products_count));
     }
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['categories'], 'categories=' . $categories . '&cID=' . $cInfo->categories_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:categories.php

示例15: selection

    function selection() {
      global $oOrder, $aLang;

      for ($i=1; $i<13; $i++) {
        $expires_month[] = array('id' => sprintf('%02d', $i), 'text' => strftime('%B',mktime(0,0,0,$i,1,2000)));
      }

      $today = getdate();
      for ($i=$today['year']; $i < $today['year']+10; $i++) {
        $expires_year[] = array('id' => strftime('%y',mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y',mktime(0,0,0,1,1,$i)));
      }


      for ($i = 1; $i < 13; $i ++) {
        $start_month[] = array ('id' => sprintf('%02d', $i), 'text' => strftime('%B', mktime(0,0,0,$i,1,2000)));
      }

      $today = getdate();
      for ($i = $today['year'] - 4; $i <= $today['year']; $i ++) {
        $start_year[] = array ('id' => strftime('%y', mktime(0,0,0,1,1,$i)), 'text' => strftime('%Y', mktime(0, 0, 0, 1, 1, $i)));
      }

      $form_array = array ();

      // Owner
      $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_owner'], 'field' => oos_draw_input_field('cc_owner', $oOrder->billing['firstname'] . ' ' . $oOrder->billing['lastname']))));

      // CC Number
      $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_number'], 'field' => oos_draw_input_field('cc_number'))));


      // Startdate
      if (USE_CC_START == '1') {
        $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_start'], 'field' => oos_draw_pull_down_menu('cc_start_month', $start_month).'&nbsp;'.oos_draw_pull_down_menu('cc_start_year', $start_year))));
      }
      // expire date
      $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_expires'], 'field' => oos_draw_pull_down_menu('cc_expires_month', $expires_month) . '&nbsp;' . oos_draw_pull_down_menu('cc_expires_year', $expires_year))));


      // CVV
      if (USE_CC_CVV == '1') {
        $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_cvv'], 'field' => oos_draw_input_field('cc_cvv', '', 'size=4 maxlength=4'))));
      }

      if (USE_CC_ISS == '1') {
        $form_array = array_merge($form_array, array(array('title' => $aLang['module_payment_cc_text_credit_card_issue'], 'field' => oos_draw_input_field('cc_issue', '', 'size=2 maxlength=2'))));
      }


      // cards
      if (MODULE_PAYMENT_CC_ACCEPT_VISA == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_visa.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_MASTERCARD == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_mastercard.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_AMERICANEXPRESS == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_amex.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_DINERSCLUB == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_diners.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_DISCOVERNOVUS == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_discover.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_JCB == '1')
        $this->accepted .= oos_image(OOS_ICONS . 'cc_jcb.jpg');
      if (MODULE_PAYMENT_CC_ACCEPT_OZBANKCARD == '1')
        $this->accepted .='';

      $form_array = array_merge(array(array('title'=>$aLang['module_payment_cc_accepted_cards'],'field'=>$this->accepted)),$form_array);

      $selection = array ('id' => $this->code,
                          'module' => $this->title,
                          'fields' => $form_array);

      return $selection;
    }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:73,代码来源:cc.php


注:本文中的oos_draw_input_field函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。