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


PHP oos_draw_pull_down_menu函数代码示例

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


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

示例1: oos_draw_option_type_pull_down_menu

/**
 * Draw a pulldown for Option Types
 *
 * @param $name
 * @param $default
 */
function oos_draw_option_type_pull_down_menu($name, $default = '')
{
    global $products_options_types_list;
    $values = array();
    foreach ($products_options_types_list as $id => $text) {
        $values[] = array('id' => $id, 'text' => $text);
    }
    return oos_draw_pull_down_menu($name, $values, $default);
}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:15,代码来源:function_products_attributes.php

示例2: display_links

 function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
 {
     if (!empty($parameters) && substr($parameters, -1) != '&') {
         $parameters .= '&';
     }
     // calculate number of pages needing links
     $num_pages = intval($query_numrows / $max_rows_per_page);
     // $num_pages now contains int of pages needed unless there is a remainder from division
     if ($query_numrows % $max_rows_per_page) {
         $num_pages++;
     }
     // has remainder so add one page
     $pages_array = array();
     for ($i = 1; $i <= $num_pages; $i++) {
         $pages_array[] = array('id' => $i, 'text' => $i);
     }
     if ($num_pages > 1) {
         $display_links = oos_draw_form('pages', basename($_SERVER['PHP_SELF']), '', 'get');
         if ($current_page_number > 1) {
             $display_links .= '<a href="' . oos_href_link_admin(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number - 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a>&nbsp;&nbsp;';
         } else {
             $display_links .= PREVNEXT_BUTTON_PREV . '&nbsp;&nbsp;';
         }
         $display_links .= sprintf(TEXT_RESULT_PAGE, oos_draw_pull_down_menu($page_name, $pages_array, '', 'onChange="this.form.submit();"'), $num_pages);
         if ($current_page_number < $num_pages && $num_pages != 1) {
             $display_links .= '&nbsp;&nbsp;<a href="' . oos_href_link_admin(basename($_SERVER['PHP_SELF']), $parameters . $page_name . '=' . ($current_page_number + 1), 'NONSSL') . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . '</a>';
         } else {
             $display_links .= '&nbsp;&nbsp;' . PREVNEXT_BUTTON_NEXT;
         }
         if ($parameters != '') {
             if (substr($parameters, -1) == '&') {
                 $parameters = substr($parameters, 0, -1);
             }
             $pairs = explode('&', $parameters);
             while (list(, $pair) = each($pairs)) {
                 list($key, $value) = explode('=', $pair);
                 $display_links .= oos_draw_hidden_field(rawurldecode($key), rawurldecode($value));
             }
         }
         if (SID) {
             $display_links .= oos_draw_hidden_field(oos_session_name(), oos_session_id());
         }
         $display_links .= '</form>';
     } else {
         $display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
     }
     return $display_links;
 }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:48,代码来源:class_split_page_results.php

示例3: 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)));
     }
     $selection = array('id' => $this->code, 'module' => $this->title, 'fields' => array(array('title' => $aLang['module_payment_2checkout_text_credit_card_owner_first_name'], 'field' => oos_draw_input_field('pm_2checkout_cc_owner_firstname', $oOrder->billing['firstname'])), array('title' => $aLang['module_payment_2checkout_text_credit_card_owner_last_name'], 'field' => oos_draw_input_field('pm_2checkout_cc_owner_lastname', $oOrder->billing['lastname'])), array('title' => $aLang['module_payment_2checkout_text_credit_card_number'], 'field' => oos_draw_input_field('pm_2checkout_cc_number')), array('title' => $aLang['module_payment_2checkout_text_credit_card_expires'], 'field' => oos_draw_pull_down_menu('pm_2checkout_cc_expires_month', $expires_month) . '&nbsp;' . oos_draw_pull_down_menu('pm_2checkout_cc_expires_year', $expires_year)), array('title' => $aLang['module_payment_2checkout_text_credit_card_checknumber'], 'field' => oos_draw_input_field('pm_2checkout_cc_cvv', '', 'size="4" maxlength="3"') . '&nbsp;<small>' . $aLang['module_payment_2checkout_text_credit_card_checknumber_location'] . '</small>')));
     return $selection;
 }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:13,代码来源:pm2checkout.php

示例4: oos_draw_form

    ?>
</td>
            <td align="right"><table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr><?php 
    echo oos_draw_form('status', $aFilename['ticket_view'], '', 'get');
    ?>
                <td class="smallText" align="right">
<?php 
    if (TICKET_USE_STATUS == '1') {
        echo HEADING_TITLE_STATUS . ' ' . oos_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_TICKETS)), $ticket_statuses), '', 'onChange="this.form.submit();"') . "<br />\n";
    }
    if (TICKET_USE_DEPARTMENT == '1') {
        echo HEADING_TITLE_DEPARTMENT . ' ' . oos_draw_pull_down_menu('department', array_merge(array(array('id' => '', 'text' => TEXT_ALL_DEPARTMENTS)), $ticket_departments), '', 'onChange="this.form.submit();"') . "<br />\n";
    }
    if (TICKET_USE_PRIORITY == '1') {
        echo HEADING_TITLE_PRIORITY . ' ' . oos_draw_pull_down_menu('priority', array_merge(array(array('id' => '', 'text' => TEXT_ALL_PRIORITYS)), $ticket_prioritys), '', 'onChange="this.form.submit();"') . "<br />\n";
    }
    ?>
                </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"><?php 
    echo TABLE_HEADING_NAME;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:ticket_view.php

示例5: oos_draw_pull_down_menu

         $ProductSelectOptions .= "<option value='0'>&nbsp;" . $LastOptionTag . "\n";
         $ProductSelectOptions .= "<option value='0'>&nbsp;" . $LastOptionTag . "\n";
     }
 }
 echo "<tr><td><table border='0'>\n";
 // Set Defaults
 if (!isset($add_product_categories_id)) {
     $add_product_categories_id = 0;
 }
 if (!isset($add_product_products_id)) {
     $add_product_products_id = 0;
 }
 // Step 1: Choose Category
 echo '<tr class="dataTableRow"><form action="' . $_SERVER['PHP_SELF'] . '?oID=' . $oID . '&action=' . $action . '" method="POST">' . "\n";
 echo '<td class="dataTableContent" align="right"><b>STEP 1:</b></td><td class="dataTableContent" valign="top">';
 echo ' ' . oos_draw_pull_down_menu('add_product_categories_id', oos_get_category_tree(), $current_category_id, 'onChange="this.form.submit();"');
 echo '<input type="hidden" name="step" value="2">';
 echo '</td>' . "\n";
 echo '</form></tr>' . "\n";
 echo '<tr><td colspan="3">&nbsp;</td></tr>' . "\n";
 // Step 2: Choose Product
 if ($step > 1 && $add_product_categories_id > 0) {
     echo '<tr class="dataTableRow"><form action="' . $_SERVER['PHP_SELF'] . '?oID=' . $oID . '&action=' . $action . '" method="POST">' . "\n";
     echo '<td class="dataTableContent" align="right"><b>STEP 2:</b></td><td class="dataTableContent" valign="top"><select name="add_product_products_id" onChange="this.form.submit();">';
     $ProductOptions = '<option value="0">' . ADDPRODUCT_TEXT_SELECT_PRODUCT . "\n";
     asort($ProductList[$add_product_categories_id]);
     foreach ($ProductList[$add_product_categories_id] as $ProductID => $ProductName) {
         $ProductOptions .= '<option value="' . $ProductID . '"> ' . $ProductName . "\n";
     }
     $ProductOptions = str_replace('value="' . $add_product_products_id . '"', 'value="' . $add_product_products_id . '" selected', $ProductOptions);
     echo $ProductOptions;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:edit_orders.php

示例6: oos_draw_form

</td>
      </tr>
      <tr><?php 
    echo oos_draw_form('newsletter', $aFilename['newsletters'], 'page=' . $_GET['page'] . '&action=' . $form_action);
    if ($form_action == 'update') {
        echo oos_draw_hidden_field('newsletter_id', $nID);
    }
    ?>
        <td><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_NEWSLETTER_MODULE;
    ?>
</td>
            <td class="main"><?php 
    echo oos_draw_pull_down_menu('module', $modules_array, $nInfo->module);
    ?>
</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 
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:newsletters.php

示例7: oos_draw_form

?>
                    </td>
                  </tr>
                </table></td>
                <td width="460" valign="center"><table border="0" width="460" height="375" cellspacing="1" cellpadding="1">
                  <tr>
                    <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                      <tr><?php 
echo oos_draw_form('languages', 'index.php', '', 'get');
?>
                        <td class="heading"><?php 
echo HEADING_TITLE;
?>
</td>
                        <td align="right"><?php 
echo oos_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"');
?>
</td>
                      </form></tr>
                    </table></td>
                  </tr>
<?php 
$col = 2;
$counter = 0;
for ($i = 0, $n = count($cat); $i < $n; $i++) {
    if ($cat[$i]['access'] == true) {
        $counter++;
        if ($counter < $col) {
            echo '                  <tr>' . "\n";
        }
        echo '                    <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" . '                      <tr>' . "\n" . '                        <td><a href="' . $cat[$i]['href'] . '">' . oos_image(OOS_IMAGES . 'categories/' . $cat[$i]['image'], $cat[$i]['title'], '50', '50') . '</a></td>' . "\n" . '                        <td><table border="0" cellspacing="0" cellpadding="1">' . "\n" . '                          <tr>' . "\n" . '                            <td class="main"><a href="' . $cat[$i]['href'] . '" class="main">' . $cat[$i]['title'] . '</a></td>' . "\n" . '                          </tr>' . "\n" . '                          <tr>' . "\n" . '                            <td class="sub_false">';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:index.php

示例8: array

  $contents = array();

  switch ($action) {
    case 'confirm':
      $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE_CUSTOMER . '</b>');

      $contents = array('form' => oos_draw_form('customers', $aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=deleteconfirm'));
      $contents[] = array('text' => TEXT_DELETE_INTRO . '<br /><br /><b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>');
      if ($cInfo->number_of_reviews > 0) $contents[] = array('text' => '<br />' . oos_draw_checkbox_field('delete_reviews', 'on', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews));
      $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
      break;

    case 'editstatus':
      $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_STATUS_CUSTOMER . '</b>');
      $contents = array('form' => oos_draw_form('customers', $aFilename['customers'], oos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_id . '&action=statusconfirm'));
      $contents[] = array('text' => '<br />' . oos_draw_pull_down_menu('pdm_status', array_merge(array(array('id' => '0', 'text' => PULL_DOWN_DEFAULT)), $customers_statuses_array), $cInfo->customers_status) );
      $contents[] = array('text' => '<table border="0" cellspacing="0" cellpadding="5"><tr><td class="smallText" align="center">' . TABLE_HEADING_NEW_VALUE .' </td><td class="smallText" align="center">' . TABLE_HEADING_DATE_ADDED . '</td></tr>');

      $customers_status_historytable = $oostable['customers_status_history'];
      $customers_history_sql = "SELECT new_value, old_value, date_added, customer_notified
                                FROM $customers_status_historytable
                                WHERE customers_id = '" . oos_db_input($cID) . "'
                                ORDER BY customers_status_history_id DESC";
      $customers_history_result = $dbconn->Execute($customers_history_sql);
      if ($customers_history_result->RecordCount()) {
        while ($customers_history = $customers_history_result->fields) {
          $contents[] = array('text' => '<tr>' . "\n" . '<td class="smallText">' . $customers_statuses_array[$customers_history['new_value']]['text'] . '</td>' . "\n" .'<td class="smallText" align="center">' . oos_datetime_short($customers_history['date_added']) . '</td>' . "\n" .'<td class="smallText" align="center">');
          $contents[] = array('text' => '</tr>' . "\n");

          // Move that ADOdb pointer!
          $customers_history_result->MoveNext();
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:customers.php

示例9: array

 case 'edit':
     $heading[] = array('text' => '<b>' . TEXT_HEADING_EDIT_BLOCK . '</b>');
     $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>');
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:content_block.php

示例10: choose_audience

    function choose_audience()
    {
        // Get database information
        $dbconn =& oosDBGetConn();
        $oostable =& oosDBGetTables();
        $aFilename = oos_get_filename();
        $products_array = array();
        $products_result = $dbconn->Execute("SELECT pd.products_id, pd.products_name FROM " . $oostable['products'] . " p, " . $oostable['products_description'] . " pd WHERE pd.products_languages_id = '" . intval($_SESSION['language_id']) . "' AND pd.products_id = p.products_id AND p.products_status >= '1' ORDER BY pd.products_name");
        while ($products = $products_result->fields) {
            $products_array[] = array('id' => $products['products_id'], 'text' => $products['products_name']);
            // Move that ADOdb pointer!
            $products_result->MoveNext();
        }
        $choose_audience_string = '<script language="javascript"><!--
function mover(move) {
  if (move == \'remove\') {
    for (x=0; x<(document.notifications.products.length); x++) {
      if (document.notifications.products.options[x].selected) {
        with(document.notifications.elements[\'chosen[]\']) {
          options[options.length] = new Option(document.notifications.products.options[x].text,document.notifications.products.options[x].value);
        }
        document.notifications.products.options[x] = null;
        x = -1;
      }
    }
  }
  if (move == \'add\') {
    for (x=0; x<(document.notifications.elements[\'chosen[]\'].length); x++) {
      if (document.notifications.elements[\'chosen[]\'].options[x].selected) {
        with(document.notifications.products) {
          options[options.length] = new Option(document.notifications.elements[\'chosen[]\'].options[x].text,document.notifications.elements[\'chosen[]\'].options[x].value);
        }
        document.notifications.elements[\'chosen[]\'].options[x] = null;
        x = -1;
      }
    }
  }
  return true;
}

function selectAll(FormName, SelectBox) {
  temp = "document." + FormName + ".elements[\'" + SelectBox + "\']";
  Source = eval(temp);

  for (x=0; x<(Source.length); x++) {
    Source.options[x].selected = "true";
  }

  if (x<1) {
    alert(\'' . JS_PLEASE_SELECT_PRODUCTS . '\');
    return false;
  } else {
    return true;
  }
}
//--></script>';
        $choose_audience_string .= '<form name="notifications" action="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm') . '" method="post" onSubmit="return selectAll(\'notifications\', \'chosen[]\')"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . '  <tr>' . "\n" . '    <td align="center" class="main"><b>' . TEXT_PRODUCTS . '</b><br />' . oos_draw_pull_down_menu('products', $products_array, '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . '    <td align="center" class="main">&nbsp;<br /><a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm&global=true') . '"><input type="button" value="' . BUTTON_GLOBAL . '" style="width: 8em;"></a><br /><br /><br /><input type="button" value="' . BUTTON_SELECT . '" style="width: 8em;" onClick="mover(\'remove\');"><br /><br /><input type="button" value="' . BUTTON_UNSELECT . '" style="width: 8em;" onClick="mover(\'add\');"><br /><br /><br /><input type="submit" value="' . BUTTON_SUBMIT . '" style="width: 8em;"><br /><br /><a href="' . oos_href_link_admin($aFilename['newsletters'], 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '"><input type="button" value="' . BUTTON_CANCEL . '" style="width: 8em;"></a></td>' . "\n" . '    <td align="center" class="main"><b>' . TEXT_SELECTED_PRODUCTS . '</b><br />' . oos_draw_pull_down_menu('chosen[]', array(), '', 'size="20" style="width: 20em;" multiple') . '</td>' . "\n" . '  </tr>' . "\n" . '</table></form>';
        return $choose_audience_string;
    }
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:59,代码来源:product_notification.php

示例11: 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

示例12: array

     $contents[] = array('text' => '<br />&nbsp;' . TEXT_INFO_FIRSTNAME . '<br />&nbsp;' . oos_draw_input_field('admin_firstname', $mInfo->admin_firstname));
     $contents[] = array('text' => '<br />&nbsp;' . TEXT_INFO_LASTNAME . '<br />&nbsp;' . oos_draw_input_field('admin_lastname', $mInfo->admin_lastname));
     $contents[] = array('text' => '<br />&nbsp;' . TEXT_INFO_EMAIL . '<br />&nbsp;' . oos_draw_input_field('admin_email_address', $mInfo->admin_email_address));
     if ($mInfo->admin_id == 1) {
         $contents[] = array('text' => oos_draw_hidden_field('admin_groups_id', $mInfo->admin_groups_id));
     } else {
         $groups_array = array();
         $groups_array = array(array('id' => '0', 'text' => TEXT_NONE));
         $groups_query = "SELECT admin_groups_id, admin_groups_name FROM " . $oostable['admin_groups'];
         $groups_result =& $dbconn->Execute($groups_query);
         while ($groups = $groups_result->fields) {
             $groups_array[] = array('id' => $groups['admin_groups_id'], 'text' => $groups['admin_groups_name']);
             // Move that ADOdb pointer!
             $groups_result->MoveNext();
         }
         $contents[] = array('text' => '<br />&nbsp;' . TEXT_INFO_GROUP . '<br />&nbsp;' . oos_draw_pull_down_menu('admin_groups_id', $groups_array, $mInfo->admin_groups_id));
     }
     $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('insert', 'insert_off.gif', IMAGE_INSERT, 'onClick="validateForm();return document.returnValue"') . ' <a href="' . oos_href_link_admin($aFilename['admin_members'], 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     break;
 case 'del_member':
     $heading[] = array('text' => '<b>' . TEXT_INFO_HEADING_DELETE . '</b>');
     if ($mInfo->admin_id == 1 || $mInfo->admin_email_address == STORE_OWNER_EMAIL_ADDRESS) {
         $contents[] = array('align' => 'center', 'text' => '<br /><a href="' . oos_href_link_admin($aFilename['admin_members'], 'page=' . $_GET['page'] . '&mID=' . $mInfo->admin_id) . '">' . oos_image_swap_button('back', 'back_off.gif', IMAGE_BACK) . '</a><br />&nbsp;');
     } else {
         $contents = array('form' => oos_draw_form('edit', $aFilename['admin_members'], 'action=member_delete&page=' . $_GET['page'] . '&mID=' . $admin['admin_id'], 'post', 'enctype="multipart/form-data"'));
         $contents[] = array('text' => oos_draw_hidden_field('admin_id', $mInfo->admin_id));
         $contents[] = array('align' => 'center', 'text' => sprintf(TEXT_INFO_DELETE_INTRO, $mInfo->admin_firstname . ' ' . $mInfo->admin_lastname));
         $contents[] = array('align' => 'center', 'text' => '<br />' . oos_image_swap_submits('delete', 'delete_off.gif', IMAGE_DELETE) . ' <a href="' . oos_href_link_admin($aFilename['admin_members'], 'page=' . $_GET['page'] . '&mID=' . $_GET['mID']) . '">' . oos_image_swap_button('cancel', 'cancel_off.gif', IMAGE_CANCEL) . '</a>');
     }
     break;
 case 'new_group':
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:admin_members.php

示例13: array

    $contents[] = array('params' => 'class="infoBox"',
                        'text' => oos_image(OOS_IMAGES . 'icons/unlocked.gif', ICON_UNLOCKED, '', '', 'align="right"') . BOX_CONNECTION_UNPROTECTED);
  }

  $box = new box();
  echo $box->tableBlock($contents);
?>
                    </td>
                  </tr>
                </table></td>
                <td width="460" valign="center"><table border="0" width="460" height="375" cellspacing="1" cellpadding="1">
                  <tr>
                    <td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
                      <tr><?php echo oos_draw_form('languages', 'index.php', '', 'get'); ?>
                        <td class="heading"><?php echo HEADING_TITLE; ?></td>
                        <td align="right"><?php echo oos_draw_pull_down_menu('language', $languages_array, $languages_selected, 'onChange="this.form.submit();"'); ?></td>
                      </form></tr>
                    </table></td>
                  </tr>
<?php
  $col = 2;
  $counter = 0;
  for ($i = 0, $n = count($cat); $i < $n; $i++) {
    if ($cat[$i]['access'] == true) {
    $counter++;
    if ($counter < $col) {
      echo '                  <tr>' . "\n";
    }

    echo '                    <td><table border="0" cellspacing="0" cellpadding="2">' . "\n" .
         '                      <tr>' . "\n" .
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:index.php

示例14: sort

      sort($directory_array);
      $dir->close();
    }

    for ($i = 0, $n = count($directory_array); $i < $n; $i++) {
      $modules_array[] = array('id' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')), 'text' => substr($directory_array[$i], 0, strrpos($directory_array[$i], '.')));
    }
?>
      <tr>
        <td><?php echo oos_draw_separator('trans.gif', '1', '10'); ?></td>
      </tr>
      <tr><?php echo oos_draw_form('newsletter', $aFilename['newsletters'], 'page=' . $_GET['page'] . '&action=' . $form_action); if ($form_action == 'update') echo oos_draw_hidden_field('newsletter_id', $nID); ?>
        <td><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php echo TEXT_NEWSLETTER_MODULE; ?></td>
            <td class="main"><?php echo oos_draw_pull_down_menu('module', $modules_array, $nInfo->module); ?></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 echo oos_draw_textarea_field('content', 'soft', '100%', '20', $nInfo->content); ?></td>
          </tr>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:newsletters.php

示例15: oos_draw_separator

        <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('categories', $aFilename['newsfeed_manager'], '', 'get');
    ?>
              <td class="smallText" align="right"><?php 
    echo HEADING_TITLE_SHOW . ' ' . oos_draw_pull_down_menu('categories', array_merge(array(array('id' => '', 'text' => TEXT_ALL_CATEGORIES)), $newsfeed_categories), '', '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_ID;
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:newsfeed_manager.php


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