コード例 #1
0
ファイル: resize.php プロジェクト: sajad1441/TomatoShop-v1
 function getParameters()
 {
     global $osC_Language;
     $groups = array();
     $groups_ids = array();
     foreach ($this->_groups as $group) {
         if ($group['id'] != '1') {
             $groups[] = array('text' => $group['title'], 'id' => $group['id']);
             $groups_ids[] = $group['id'];
         }
     }
     return array(array('key' => $osC_Language->get('images_resize_field_groups'), 'field' => osc_draw_pull_down_menu('groups[]', $groups, $groups_ids, 'multiple="multiple" size="5"')), array('key' => $osC_Language->get('images_resize_field_overwrite_images'), 'field' => osc_draw_checkbox_field('overwrite', '1')));
 }
コード例 #2
0
function osc_cfg_set_credit_cards_checkbox_field($default, $key = null)
{
    $OSCOM_Database = Registry::get('Database');
    $name = empty($key) ? 'configuration_value' : 'configuration[' . $key . '][]';
    $cc_array = array();
    $Qcc = $OSCOM_Database->query('select id, credit_card_name from :table_credit_cards where credit_card_status = :credit_card_status order by sort_order, credit_card_name');
    $Qcc->bindInt(':credit_card_status', 1);
    $Qcc->execute();
    while ($Qcc->next()) {
        $cc_array[] = array('id' => $Qcc->valueInt('id'), 'text' => $Qcc->value('credit_card_name'));
    }
    return osc_draw_checkbox_field($name, $cc_array, explode(',', $default), null, '<br />');
}
コード例 #3
0
ファイル: polls.php プロジェクト: Doluci/tomatocart
 function initialize()
 {
     global $osC_Database, $osC_Language, $osC_Template;
     $Qpoll = $osC_Database->query('select p.polls_id, p.polls_type, pd.polls_title from :table_polls p, :table_polls_description pd where p.polls_status = 1 and p.polls_id = pd.polls_id and pd.languages_id = :languages_id');
     $Qpoll->bindTable(':table_polls', TABLE_POLLS);
     $Qpoll->bindTable(':table_polls_description', TABLE_POLLS_DESCRIPTION);
     $Qpoll->bindInt(':languages_id', $osC_Language->getID());
     $Qpoll->executeRandomMulti();
     $this->_content = '<div id="polls"><form name="frmPolls" id="frmPolls" action="' . osc_href_link(FILENAME_JSON) . '" method="get">' . osc_draw_hidden_field('polls_id', $Qpoll->valueInt('polls_id'));
     if ($Qpoll->numberOfRows() > 0) {
         $this->_content .= '<h6>' . $Qpoll->value('polls_title') . '</h6>';
         $Qanswers = $osC_Database->query('select pa.polls_id, pa.polls_answers_id, pa.votes_count, pa.sort_order, pad.answers_title from :table_polls_answers pa, :table_polls_answers_description pad where pa.polls_id = :polls_id and pa.polls_answers_id = pad.polls_answers_id and pad.languages_id = :languages_id order by pa.sort_order desc');
         $Qanswers->bindTable(':table_polls_answers', TABLE_POLLS_ANSWERS);
         $Qanswers->bindTable(':table_polls_answers_description', TABLE_POLLS_ANSWERS_DESCRIPTION);
         $Qanswers->bindInt(':polls_id', $Qpoll->valueInt('polls_id'));
         $Qanswers->bindInt(':languages_id', $osC_Language->getID());
         $Qanswers->execute();
         if ($Qanswers->numberOfRows() > 0) {
             $this->_content .= '<ul>';
             while ($Qanswers->next()) {
                 if ($Qpoll->valueInt('polls_type')) {
                     $this->_content .= '<li>' . osc_draw_checkbox_field('vote[]', $Qanswers->valueInt('polls_answers_id'), null, 'class="poll_votes"') . '&nbsp;&nbsp;' . $Qanswers->value('answers_title') . '</li>';
                 } else {
                     $this->_content .= '<li>' . osc_draw_radio_field('vote[]', $Qanswers->valueInt('polls_answers_id'), null, 'class="poll_votes"') . '&nbsp;&nbsp;' . $Qanswers->value('answers_title') . '</li>';
                 }
             }
             $this->_content .= '</ul>';
             $this->_content .= '<span style="float: right;">' . osc_draw_image_button('button_vote.png', $osC_Language->get('button_vote'), 'class="button" id="btnPollVote"') . '</span>';
             $this->_content .= osc_draw_image_button('button_result.png', $osC_Language->get('button_result'), 'class="button" id="btnPollResult"');
             $Qanswers->freeResult();
         }
     }
     $Qpoll->freeResult();
     $this->_content .= '</form></div>';
     $osC_Template->addJavascriptFilename('includes/javascript/polls.js');
     $js .= '<script type="text/javascript">
           window.addEvent(\'domready\',function(){
             var polls = new Polls();
           });
           </script>';
     $this->_content .= $js . "\n";
 }
コード例 #4
0
</td>
                <td class="main"><?php 
echo osc_draw_input_field('email_address', '', '', true);
?>
</td>
              </tr>
<?php 
if (ACCOUNT_NEWSLETTER > -1) {
    ?>
              <tr>
                <td class="main"><?php 
    echo ENTRY_NEWSLETTER;
    ?>
</td>
                <td class="main"><?php 
    echo osc_draw_checkbox_field('newsletter', '1');
    ?>
</td>
              </tr>
<?php 
}
?>
              <tr>
               <td colspan="2"><?php 
echo tep_draw_separator('pixel_trans.gif', '100%', '10');
?>
</td>
              </tr>
              <tr>
                <td class="main"><?php 
echo ENTRY_PASSWORD;
コード例 #5
0
</div>
<div class="infoBoxContent">
  <form name="bDelete" action="<?php 
echo osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&bID=' . $osC_ObjectInfo->get('banners_id') . '&action=delete');
?>
" method="post">

  <p><?php 
echo $osC_Language->get('introduction_delete_banner');
?>
</p>

  <p><?php 
echo '<b>' . $osC_ObjectInfo->get('banners_title') . '</b>';
?>
</p>

<?php 
if (!osc_empty($osC_ObjectInfo->get('banners_image'))) {
    echo '  <p>' . osc_draw_checkbox_field('delete_image', array(array('id' => 'on', 'text' => $osC_Language->get('field_delete_image'))), true) . '</p>';
}
?>

  <p align="center"><?php 
echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_delete') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page']) . '\';" class="operationButton" />';
?>
</p>

  </form>
</div>
コード例 #6
0
ファイル: main.php プロジェクト: heshuai64/gamestore
?>
</th>
      <th align="center" width="20"><?php 
echo osc_draw_checkbox_field('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="3"><?php 
echo '<input type="image" src="' . osc_icon_raw('trash.png') . '" title="' . $osC_Language->get('icon_trash') . '" onclick="document.batch.action=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&action=batch_delete') . '\';" />';
?>
</th>
      <th align="center" width="20"><?php 
echo osc_draw_checkbox_field('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
  <span id="dataTableLegend"><?php 
echo '<b>' . $osC_Language->get('table_action_legend') . '</b> ' . osc_icon('edit.png') . '&nbsp;' . $osC_Language->get('icon_edit') . '&nbsp;&nbsp;' . osc_icon('trash.png') . '&nbsp;' . $osC_Language->get('icon_trash');
?>
</span>
コード例 #7
0
ファイル: new.php プロジェクト: heshuai64/gamestore
echo $osC_Language->get('field_password_confirmation');
?>
</td>
      <td width="70%"><?php 
echo osc_draw_password_field('confirmation');
?>
</td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td width="30%"><?php 
echo $osC_Language->get('field_status');
?>
</td>
      <td width="70%"><?php 
echo osc_draw_checkbox_field('status', 'on', true);
?>
</td>
    </tr>
  </table>

  <p align="center"><?php 
echo osc_draw_hidden_field('subaction', 'confirm') . '<input type="submit" value="' . $osC_Language->get('button_save') . '" class="operationButton" /> <input type="button" value="' . $osC_Language->get('button_cancel') . '" class="operationButton" onclick="document.location.href=\'' . osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&search=' . $_GET['search'] . '&page=' . $_GET['page']) . '\';" />';
?>
</p>

  </form>
</div>
コード例 #8
0
    </div>
    
      <li style="height:10px;line-height:10px">&nbsp;</li>
    <?php 
if ($osC_Customer->isLoggedOn()) {
    ?>
       <li>  
      <?php 
    echo osc_draw_checkbox_field('create_billing_address', array(array('id' => '1', 'text' => $osC_Language->get('create_new_billing_address'))), $create_billing_address);
    ?>
      </li>    
    <?php 
}
if ($osC_ShoppingCart->isVirtualCart() == false) {
    ?>
      <li><?php 
    echo osc_draw_checkbox_field('ship_to_this_address', array(array('id' => '1', 'text' => $osC_Language->get('ship_to_this_address'))), $ship_to_this_address);
    ?>
</li>    
    <?php 
}
?>
    
    </ol>
    <div class="submitFormButtons" style="text-align: right;">
    <?php 
echo osc_draw_image_button('button_continue.gif', $osC_Language->get('button_continue'), 'id="btnSaveBillingInformation" style="cursor: pointer"');
?>
    </div>
  </div>
</div>
コード例 #9
0
  <div class="infoBoxContent">
    <?php 
    echo tep_draw_form('cDelete', FILENAME_CUSTOMERS, (isset($_GET['search']) ? 'search=' . $_GET['search'] . '&' : '') . 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_id . '&action=deleteconfirm');
    ?>

    <p><?php 
    echo TEXT_DELETE_INTRO;
    ?>
</p>
    <p><?php 
    echo '<b>' . $cInfo->customers_firstname . ' ' . $cInfo->customers_lastname . '</b>';
    ?>
</p>

<?php 
    if ($cInfo->number_of_reviews > 0) {
        echo '    <p>' . osc_draw_checkbox_field('delete_reviews', '', true) . ' ' . sprintf(TEXT_DELETE_REVIEWS, $cInfo->number_of_reviews) . '</p>';
    }
    ?>

    <p align="center"><?php 
    echo '<input type="submit" value="' . IMAGE_DELETE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'cDefault\');" class="operationButton">';
    ?>
</p>

    </form>
  </div>
</div>

<?php 
}
コード例 #10
0
    <ol>
      <li>

<?php 
echo osc_draw_label($osC_Language->get('field_search_categories'), 'cPath');
$osC_CategoryTree->setSpacerString('&nbsp;', 2);
$categories_array = array(array('id' => '', 'text' => $osC_Language->get('filter_all_categories')));
foreach ($osC_CategoryTree->buildBranchArray(0) as $category) {
    $categories_array[] = array('id' => $category['id'], 'text' => $category['title']);
}
echo osc_draw_pull_down_menu('cPath', $categories_array);
?>

      </li>
      <li><?php 
echo osc_draw_checkbox_field('recursive', array(array('id' => '1', 'text' => $osC_Language->get('field_search_recursive'))), true);
?>
</li>
      <li>

<?php 
echo osc_draw_label($osC_Language->get('field_search_manufacturers'), 'manufacturers');
$manufacturers_array = array(array('id' => '', 'text' => $osC_Language->get('filter_all_manufacturers')));
$Qmanufacturers = $osC_Database->query('select manufacturers_id, manufacturers_name from :table_manufacturers order by manufacturers_name');
$Qmanufacturers->bindTable(':table_manufacturers', TABLE_MANUFACTURERS);
$Qmanufacturers->execute();
while ($Qmanufacturers->next()) {
    $manufacturers_array[] = array('id' => $Qmanufacturers->valueInt('manufacturers_id'), 'text' => $Qmanufacturers->value('manufacturers_name'));
}
echo osc_draw_pull_down_menu('manufacturers', $manufacturers_array);
?>
コード例 #11
0
ファイル: create.php プロジェクト: sajad1441/TomatoShop-v1
</div>

<?php 
if (DISPLAY_PRIVACY_CONDITIONS == '1') {
    ?>

<div class="moduleBox">
  <h6><?php 
    echo $osC_Language->get('create_account_terms_heading');
    ?>
</h6>

  <div class="content">
    <?php 
    $privacy = str_replace('<a href="%s">', '<a href="' . osc_href_link(FILENAME_JSON, 'module=account&action=display_privacy') . '" class="multibox" rel="width:800,height:400,ajax:true">', $osC_Language->get('create_account_terms_description'));
    echo $privacy . '<br /><br /><ol><li>' . osc_draw_checkbox_field('privacy_conditions', array(array('id' => 1, 'text' => $osC_Language->get('create_account_terms_confirm')))) . '</li></ol>';
    ?>
  
  </div>
</div>

<?php 
}
?>

<div class="submitFormButtons">
  <span style="float: left"><?php 
echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue'));
?>
</span>
    
コード例 #12
0
ファイル: install_3.php プロジェクト: vladster/oscommerce
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo $osC_Language->get('param_administrator_password') . '<br />' . osc_draw_input_field('CFG_ADMINISTRATOR_PASSWORD', null, 'class="text"');
?>
</td>
        <td class="inputDescription"><?php 
echo $osC_Language->get('param_administrator_password_description');
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo osc_draw_checkbox_field('DB_INSERT_SAMPLE_DATA', 'true', true) . '&nbsp;' . $osC_Language->get('param_database_import_sample_data');
?>
</td>
        <td class="inputDescription"><?php 
echo $osC_Language->get('param_database_import_sample_data_description');
?>
</td>
      </tr>
    </table>

    <p align="right"><?php 
echo '<input type="image" src="templates/' . $template . '/languages/' . $osC_Language->getCode() . '/images/buttons/continue.gif" border="0" alt="' . $osC_Language->get('image_button_continue') . '" />';
?>
&nbsp;&nbsp;<?php 
echo '<a href="index.php"><img src="templates/' . $template . '/languages/' . $osC_Language->getCode() . '/images/buttons/cancel.gif" border="0" alt="' . $osC_Language->get('image_button_cancel') . '" /></a>';
?>
コード例 #13
0
ファイル: main.php プロジェクト: digitaldevelopers/oscommerce
').checked = !document.getElementById('batch<?php 
    echo $Qstatuses->valueInt('orders_status_id');
    ?>
').checked;"><?php 
    echo $status_name;
    ?>
</td>
      <td align="right">

<?php 
    echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&osID=' . $Qstatuses->valueInt('orders_status_id') . '&action=save'), osc_icon('edit.png')) . '&nbsp;' . osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&page=' . $_GET['page'] . '&osID=' . $Qstatuses->valueInt('orders_status_id') . '&action=delete'), osc_icon('trash.png'));
    ?>

      </td>
      <td align="center"><?php 
    echo osc_draw_checkbox_field('batch[]', $Qstatuses->valueInt('orders_status_id'), null, 'id="batch' . $Qstatuses->valueInt('orders_status_id') . '"');
    ?>
</td>
    </tr>

<?php 
}
?>

  </tbody>
</table>

</form>

<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
コード例 #14
0
ファイル: install.php プロジェクト: jobw0110/lascolinasobgyn
  <tr>
    <td width="30%" valign="top">Import Catalog Database:</td>
    <td width="70%" class="smallDesc">
      <?php 
echo osc_draw_checkbox_field('install[]', 'database', true);
?>
      <img src="images/layout/help_icon.gif" onClick="toggleBox('dbImport');"><br>
      <div id="dbImportSD">Install the database and add the sample data</div>
      <div id="dbImport" class="longDescription">Checking this box will import the database structure, required data, and some sample data. (required for first time installations)</div>
    </td>
  </tr>
  <tr>
    <td width="30%" valign="top">Automatic Configuration:</td>
    <td width="70%" class="smallDesc">
      <?php 
echo osc_draw_checkbox_field('install[]', 'configure', true);
?>
      <img src="images/layout/help_icon.gif" onClick="toggleBox('autoConfig');"><br>
      <div id="autoConfigSD">Save configuration values</div>
      <div id="autoConfig" class="longDescription">Checking this box will save all entered data during the installation procedure to the appropriate configuration files on the server.</div>
    </td>
  </tr>
</table>

<p>&nbsp;</p>

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center"><a href="index.php"><img src="images/button_cancel.gif" border="0" alt="Cancel"></a></td>
    <td align="center"><input type="image" src="images/button_continue.gif" border="0" alt="Continue"></td>
  </tr>
コード例 #15
0
</td>
        <td class="smallText" width="60%"><?php 
    echo osc_draw_input_field('date_expires', $bInfo->expires_date, 'id="calendarValueDEE"');
    ?>
<input type="button" value="..." id="calendarTriggerDEE" class="operationButton"><script type="text/javascript">Calendar.setup( { inputField: "calendarValueDEE", ifFormat: "%Y-%m-%d", button: "calendarTriggerDEE" } );</script><?php 
    echo TEXT_BANNERS_OR_AT . '<br>' . osc_draw_input_field('expires_impressions', $bInfo->expires_impressions, 'maxlength="7" size="7"') . ' ' . TEXT_BANNERS_IMPRESSIONS;
    ?>
</td>
      </tr>
      <tr>
        <td class="smallText" width="40%"><?php 
    echo '<b>' . TEXT_BANNERS_STATUS . '</b>';
    ?>
</td>
        <td class="smallText" width="60%"><?php 
    echo osc_draw_checkbox_field('status', 'on', $bInfo->status == 1 ? true : false);
    ?>
</td>
      </tr>
    </table>

    <p align="center"><?php 
    echo '<input type="submit" value="' . IMAGE_SAVE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'bDefault\');" class="operationButton">';
    ?>
</p>

    </form>
  </div>

  <p><?php 
    echo TEXT_BANNERS_BANNER_NOTE . '<br>' . TEXT_BANNERS_INSERT_NOTE . '<br>' . TEXT_BANNERS_EXPIRCY_NOTE . '<br>' . TEXT_BANNERS_SCHEDULE_NOTE;
コード例 #16
0
ファイル: products.php プロジェクト: itnovator/oscommerce_cvs
    <p><?php 
    echo $pInfo->products_name;
    ?>
</p>
    <p>
<?php 
    $product_categories_array = array();
    $product_categories = tep_generate_category_path($pInfo->products_id, 'product');
    for ($i = 0, $n = sizeof($product_categories); $i < $n; $i++) {
        $category_path = '';
        for ($j = 0, $k = sizeof($product_categories[$i]); $j < $k; $j++) {
            $category_path .= $product_categories[$i][$j]['text'] . '&nbsp;&gt;&nbsp;';
        }
        $category_path = substr($category_path, 0, -16);
        $product_categories_array[] = array('id' => $product_categories[$i][sizeof($product_categories[$i]) - 1]['id'], 'text' => $category_path);
    }
    echo osc_draw_checkbox_field('product_categories[]', $product_categories_array, true, '', false, '<br>');
    ?>
    </p>

    <p align="center"><?php 
    echo '<input type="submit" value="' . IMAGE_DELETE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'cDefault\');" class="operationButton">';
    ?>
</p>

    </form>
  </div>
</div>

<?php 
}
コード例 #17
0
ファイル: create.php プロジェクト: Doluci/tomatocart
  </div>
</div>

<?php 
if (DISPLAY_PRIVACY_CONDITIONS == '1') {
    ?>

<div class="moduleBox">
  <h6><?php 
    echo $osC_Language->get('create_account_terms_heading');
    ?>
</h6>

  <div class="content">
    <?php 
    echo sprintf($osC_Language->get('create_account_terms_description'), osc_href_link(FILENAME_INFO, 'privacy', 'AUTO')) . '<br /><br /><ol><li>' . osc_draw_checkbox_field('privacy_conditions', array(array('id' => 1, 'text' => $osC_Language->get('create_account_terms_confirm')))) . '</li></ol>';
    ?>
  </div>
</div>

<?php 
}
?>

<div class="submitFormButtons">
  <span style="float: right;"><?php 
echo osc_draw_image_submit_button('button_continue.gif', $osC_Language->get('button_continue'));
?>
</span>

  <?php 
コード例 #18
0
ファイル: edit.php プロジェクト: digitaldevelopers/oscommerce
</td>
    </tr>
    <tr>
      <td width="40%"><?php 
echo '<b>' . $osC_Language->get('field_pages') . '</b>';
?>
</td>
      <td width="60%"><?php 
echo osc_draw_pull_down_menu('content_page', $pages_array, $Qlayout->valueInt('templates_id') . '/' . $Qlayout->value('content_page'), 'style="width: 100%;"');
?>
</td>
    </tr>
    <tr>
      <td width="40%">&nbsp;</td>
      <td width="60%"><?php 
echo osc_draw_checkbox_field('page_specific', null, $Qlayout->valueInt('page_specific') === 1 ? true : false) . '&nbsp;<b>' . $osC_Language->get('field_page_specific') . '</b>';
?>
</td>
    </tr>
    <tr>
      <td width="40%"><?php 
echo '<b>' . $osC_Language->get('field_group') . '</b>';
?>
</td>
      <td width="60%">

<?php 
if (!empty($groups_array)) {
    echo osc_draw_pull_down_menu('group', $groups_array, $Qlayout->value('boxes_group'), 'style="width: 30%;"') . '&nbsp;&nbsp;<b>' . $osC_Language->get('field_group_new') . '</b>&nbsp;';
}
echo osc_draw_input_field('group_new', null, 'style="width: ' . (empty($groups_array) ? '100%' : '40%') . ';"');
コード例 #19
0
ファイル: install_2.php プロジェクト: eosc/EosC-2.3
  <tr>
    <td width="30%" valign="top">Database Name:</td>
    <td width="70%" class="smallDesc">
      <?php 
    echo osc_draw_input_field('DB_DATABASE');
    ?>
      <img src="images/layout/help_icon.gif" onClick="toggleBox('dbName');"><br>
      <div id="dbNameSD">Database Name</div>
      <div id="dbName" class="longDescription">The database used to hold the data. An example database name is 'osCommerce'.</div>
    </td>
  </tr>
  <tr>
    <td width="30%" valign="top">Persistent Connections:</td>
    <td width="70%" class="smallDesc">
      <?php 
    echo osc_draw_checkbox_field('USE_PCONNECT', 'true');
    ?>
      <img src="images/layout/help_icon.gif" onClick="toggleBox('dbConn');"><br>
      <div id="dbConnSD"></div>
      <div id="dbConn" class="longDescription">Enable persistent database connections.<br><br>Note: Persistent connections should be disabled for shared servers.</div>
    </td>
  </tr>
  <tr>
    <td width="30%" valign="top">Session Storage:</td>
    <td width="70%" class="smallDesc">
      <?php 
    echo osc_draw_radio_field('STORE_SESSIONS', 'files', true);
    ?>
&nbsp;Files&nbsp;&nbsp;<?php 
    echo osc_draw_radio_field('STORE_SESSIONS', 'mysql');
    ?>
コード例 #20
0
ファイル: backup.php プロジェクト: itnovator/oscommerce_cvs
<?php 
$compress_array = array(array('id' => 'no', 'text' => TEXT_INFO_USE_NO_COMPRESSION));
if (file_exists(LOCAL_EXE_GZIP)) {
    $compress_array[] = array('id' => 'gzip', 'text' => TEXT_INFO_USE_GZIP);
}
if (file_exists(LOCAL_EXE_ZIP)) {
    $compress_array[] = array('id' => 'zip', 'text' => TEXT_INFO_USE_ZIP);
}
echo osc_draw_radio_field('compress', $compress_array, 'no', '', false, '<br>');
?>
    </p>

    <p>
<?php 
if ($dir_ok === true) {
    echo osc_draw_checkbox_field('download', array(array('id' => 'yes', 'text' => TEXT_INFO_DOWNLOAD_ONLY))) . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS;
} else {
    echo osc_draw_radio_field('download', array(array('id' => 'yes', 'text' => TEXT_INFO_DOWNLOAD_ONLY)), true) . '*<br><br>*' . TEXT_INFO_BEST_THROUGH_HTTPS;
}
?>
    </p>

    <p align="center"><?php 
echo '<input type="submit" value="' . IMAGE_BACKUP . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'bDefault\');" class="operationButton">';
?>
</p>

    </form>
  </div>
</div>
コード例 #21
0
        <td class="smallText" width="40%"><?php 
    echo '<b>' . TEXT_SORT_ORDER . '</b>';
    ?>
</td>
        <td class="smallText" width="60%"><?php 
    echo osc_draw_input_field('sort_order', $ccInfo->sort_order, 'style="width: 100%"');
    ?>
</td>
      </tr>
      <tr>
        <td class="smallText" width="40%"><?php 
    echo '<b>' . TEXT_STATUS . '</b>';
    ?>
</td>
        <td class="smallText" width="60%"><?php 
    echo osc_draw_checkbox_field('credit_card_status', '1', $ccInfo->credit_card_status);
    ?>
</td>
      </tr>
    </table>

    <p align="center"><?php 
    echo '<input type="submit" value="' . IMAGE_SAVE . '" class="operationButton"> <input type="button" value="' . IMAGE_CANCEL . '" onClick="toggleInfoBox(\'ccDefault\');" class="operationButton">';
    ?>
</p>

    </form>
  </div>
</div>

<div id="infoBox_ccDelete" <?php 
コード例 #22
0
</div>

  <div style="padding-top: 30px;">
    <p><?php 
echo TEXT_SUCCESS;
?>
</p>

    <p>
<?php 
if ($global['global_product_notifications'] != '1') {
    echo TEXT_NOTIFY_PRODUCTS . '<br><p class="productsNotifications">';
    $products_displayed = array();
    for ($i = 0, $n = sizeof($products_array); $i < $n; $i++) {
        if (!in_array($products_array[$i]['id'], $products_displayed)) {
            echo osc_draw_checkbox_field('notify[]', $products_array[$i]['id']) . ' ' . $products_array[$i]['text'] . '<br>';
            $products_displayed[] = $products_array[$i]['id'];
        }
    }
    echo '</p>';
} else {
    echo TEXT_SEE_ORDERS . '<br><br>' . TEXT_CONTACT_STORE_OWNER;
}
?>
    </p>

    <h1 style="text-align: center;"><?php 
echo TEXT_THANKS_FOR_SHOPPING;
?>
</h1>
  </div>
コード例 #23
0
    echo CONFIG_WWW_HTTP_COOKIE_PATH_DESCRIPTION_LONG;
    ?>
</div>
    </td>
  </tr>
  <tr>
    <td colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td width="30%" valign="top"><?php 
    echo CONFIG_ENABLE_SSL;
    ?>
</td>
    <td width="70%" class="smallDesc">
      <?php 
    echo osc_draw_checkbox_field('ENABLE_SSL', 'true');
    ?>
      <img src="templates/<?php 
    echo $template;
    ?>
/images/help_icon.gif" onClick="toggleBox('httpSSL');"><br>
      <div id="httpSSLSD"><?php 
    echo CONFIG_ENABLE_SSL_DESCRIPTION;
    ?>
</div>
      <div id="httpSSL" class="longDescription"><?php 
    echo CONFIG_ENABLE_SSL_DESCRIPTION_LONG;
    ?>
</div>
    </td>
  </tr>
コード例 #24
0
ファイル: newsletters.php プロジェクト: kdexter/oscommerce
<form name="account_newsletter" action="<?php 
echo OSCOM::getLink(null, null, 'Newsletters&Process', 'SSL');
?>
" method="post">

<div class="moduleBox">
  <h6><?php 
echo OSCOM::getDef('newsletter_subscriptions_heading');
?>
</h6>

  <div class="content">
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td width="30"><?php 
echo osc_draw_checkbox_field('newsletter_general', '1', $Qnewsletter->value('customers_newsletter'));
?>
</td>
        <td><b><?php 
echo osc_draw_label(OSCOM::getDef('newsletter_general'), 'newsletter_general');
?>
</b></td>
      </tr>
      <tr>
        <td width="30">&nbsp;</td>
        <td><?php 
echo OSCOM::getDef('newsletter_general_description');
?>
</td>
      </tr>
    </table>
コード例 #25
0
ファイル: new.php プロジェクト: kdexter/oscommerce
    <p><label for="decimal_places"><?php 
echo OSCOM::getDef('field_decimal_places');
?>
</label><?php 
echo osc_draw_input_field('decimal_places');
?>
</p>
    <p><label for="value"><?php 
echo OSCOM::getDef('field_currency_value');
?>
</label><?php 
echo osc_draw_input_field('value');
?>
</p>
    <p><label for="default"><?php 
echo OSCOM::getDef('field_set_default');
?>
</label><?php 
echo osc_draw_checkbox_field('default');
?>
</p>
  </fieldset>

  <p><?php 
echo osc_draw_button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . osc_draw_button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

  </form>
</div>
コード例 #26
0
ファイル: main.php プロジェクト: digitaldevelopers/oscommerce
    ?>
</td>
      <td align="center"><?php 
    echo $stats['total'];
    ?>
</td>
      <td align="right"><?php 
    echo osC_DateTime::getShort(osC_DateTime::fromUnixTimestamp($stats['last_modified']), true);
    ?>
</td>
      <td align="right"><?php 
    echo osc_link_object(osc_href_link_admin(FILENAME_DEFAULT, $osC_Template->getModule() . '&block=' . $cache . '&action=delete'), osc_icon('trash.png'));
    ?>
</td>
      <td align="center"><?php 
    echo osc_draw_checkbox_field('batch[]', $cache, null, 'id="batch' . $cache . '"');
    ?>
</td>
    </tr>

<?php 
}
?>

  </tbody>
</table>

</form>

<table border="0" width="100%" cellspacing="0" cellpadding="2">
  <tr>
コード例 #27
0
ファイル: step_2.php プロジェクト: kdexter/oscommerce
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_administrator_password') . '<br />' . osc_draw_input_field('CFG_ADMINISTRATOR_PASSWORD', null, 'class="text"');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_administrator_password_description');
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo osc_draw_checkbox_field('DB_INSERT_SAMPLE_DATA', 'true', true) . '&nbsp;' . OSCOM::getDef('param_database_import_sample_data');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_database_import_sample_data_description');
?>
</td>
      </tr>
    </table>

    <p align="right"><?php 
echo osc_draw_button(array('priority' => 'primary', 'icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue'))) . ' ' . osc_draw_button(array('href' => OSCOM::getLink(null, OSCOM::getDefaultSiteApplication()), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

<?php 
コード例 #28
0
<div class="moduleBox">
	<h6><?php 
    echo $osC_Language->get('create_account_terms_heading');
    ?>
</h6>

    <div class="control-group">
    	<p>
            <?php 
    $privacy = str_replace('<a href="%s">', '<a href="' . osc_href_link(FILENAME_JSON, 'module=account&action=display_privacy') . '" class="multibox" rel="width:800,height:400,ajax:true">', $osC_Language->get('create_account_terms_description'));
    echo $privacy;
    ?>
    	</p>
    	<label class="checkbox"  for="privacy_conditions">
        	<?php 
    echo osc_draw_checkbox_field('privacy_conditions', array(array('id' => 1, 'text' => $osC_Language->get('create_account_terms_confirm'))));
    ?>
        </label>
    </div>
</div>

<?php 
}
?>

<div class="submitFormButtons">
    <a href="<?php 
echo osc_href_link(FILENAME_ACCOUNT, null, 'SSL');
?>
" class="btn btn-small pull-left"><i class="icon-chevron-left icon-white"></i> <?php 
echo $osC_Language->get('button_back');
コード例 #29
0
<?php 
} else {
    ?>

    <p style="margin-top: 0px;"><?php 
    echo $osC_Language->get('only_one_payment_method_available');
    ?>
</p>

<?php 
}
if ($osC_Customer->isLoggedOn() && $osC_Customer->hasStoreCredit()) {
    echo '<table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
           <td>' . osc_draw_checkbox_field('payment_method_store_credit', '1', $osC_ShoppingCart->isUseStoreCredit() ? true : false) . '&nbsp;<b>' . sprintf($osC_Language->get('pay_with_store_credit_title'), $osC_Currencies->format($osC_Customer->getStoreCredit())) . '</b>' . '</td>
         </tr>
       </table>';
}
?>
    <table id="payment_methods" border="0" width="100%" cellspacing="0" cellpadding="2" style="display: <?php 
echo $osC_ShoppingCart->isTotalZero() ? 'none' : '';
?>
">
<?php 
$radio_buttons = 0;
for ($i = 0, $n = sizeof($selection); $i < $n; $i++) {
    ?>

      <tr id="payment_method_<?php 
    echo $selection[$i]['id'];
コード例 #30
0
    ?>

    <div class="control-group">
        <label class="control-label" for="fax"><?php 
    echo $osC_Language->get('field_customer_fax_number') . (ACCOUNT_FAX > 0 ? '<em>*</em>' : '');
    ?>
</label>
        <div class="controls">
        	<?php 
    echo osc_draw_input_field('fax', isset($Qentry) ? $Qentry->value('entry_fax') : null);
    ?>
        </div>
    </div>

<?php 
}
if ($osC_Customer->hasDefaultAddress() && (isset($_GET['edit']) && $osC_Customer->getDefaultAddressID() != $_GET['address_book'] || isset($_GET['new']))) {
    ?>

    <div class="control-group">
        <div class="controls">
        	<label class="checkbox"  for="privacy_conditions">
        	    <?php 
    echo osc_draw_checkbox_field('primary', array(array('id' => 'on', 'text' => $osC_Language->get('set_as_primary'))), false);
    ?>
        	</label>
        </div>
    </div>

<?php 
}