예제 #1
0
 public function initialize()
 {
     $OSCOM_Product = Registry::exists('Product') ? Registry::get('Product') : null;
     if (isset($OSCOM_Product) && $OSCOM_Product instanceof \osCommerce\OM\Site\Shop\Product && $OSCOM_Product->isValid()) {
         // HPDL && ($osC_Template->getModule() != 'tell_a_friend')) {
         $this->_content = '<form name="tell_a_friend" action="' . OSCOM::getLink(null, null, 'TellAFriend&' . $OSCOM_Product->getKeyword()) . '" method="post">' . "\n" . HTML::inputField('to_email_address', null, 'style="width: 80%;"') . '&nbsp;' . HTML::submitImage('button_tell_a_friend.gif', OSCOM::getDef('box_tell_a_friend_text')) . '<br />' . OSCOM::getDef('box_tell_a_friend_text') . "\n" . '</form>' . "\n";
     }
 }
예제 #2
0
 public static function parse($data)
 {
     $string = '<table border="0" cellspacing="0" cellpadding="2">';
     $i = 0;
     foreach ($data['data'] as $field) {
         $i++;
         $string .= '  <tr>' . '    <td width="100">' . $field['text'] . ':</td>' . '    <td>' . HTML::inputField('variants[' . $data['group_id'] . '][' . $field['id'] . ']', null, 'id="variants_' . $data['group_id'] . '_' . $i . '"') . '</td>' . '  </tr>';
     }
     $string .= '</table>';
     return $string;
 }
</div>

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

  <div class="content">
    <ol>
      <li><?php 
echo HTML::label(OSCOM::getDef('field_tell_a_friend_friends_name'), 'to_name', null, true) . HTML::inputField('to_name');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('field_tell_a_friend_friends_email_address'), 'to_email_address', null, true) . HTML::inputField('to_email_address');
?>
</li>
    </ol>
  </div>
</div>

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

  <div class="content">
    <ol>
      <li><?php 
echo HTML::selectMenu('ab_state', array());
?>
');

          for (var i = 0; i < len; i++) {
            html += '<option value="' + response.zones[i].id + '">' + response.zones[i].name + '</option>';
          }

          $('#ab_state').append(html);

          if ( zone_id > 0 ) {
            $('#ab_state').val(zone_id);
          }
        } else {
          $('#ab_state').replaceWith('<?php 
echo HTML::inputField('ab_state');
?>
');

          if ( state.length > 0 ) {
            $('#ab_state').val(state);
          }
        }
      } else {
        alert('Error: The country zones list could not be populated.'); // HPDL improve
      }
    });
  });
});

var gender_male_icon = '<?php 
예제 #5
0
  <p><?php 
echo OSCOM::getDef('introduction_edit_tax_class');
?>
</p>

  <fieldset>
    <p><label for="tax_class_title"><?php 
echo OSCOM::getDef('field_title');
?>
</label><?php 
echo HTML::inputField('tax_class_title', $OSCOM_ObjectInfo->get('tax_class_title'));
?>
</p>
    <p><label for="tax_class_description"><?php 
echo OSCOM::getDef('field_description');
?>
</label><?php 
echo HTML::inputField('tax_class_description', $OSCOM_ObjectInfo->get('tax_class_description'));
?>
</p>
  </fieldset>

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

  </form>
</div>
예제 #6
0
</div>

<form name="contact" action="<?php 
echo OSCOM::getLink(null, null, 'Contact&Process');
?>
" method="post">

<div class="moduleBox">
  <div class="content">
    <ol>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_name_title'), 'name') . HTML::inputField('name');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_email_address_title'), 'email') . HTML::inputField('email');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('contact_enquiry_title'), 'enquiry') . HTML::textareaField('enquiry', null, 50, 15);
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</div>
예제 #7
0
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_administrator_username') . '<br />' . HTML::inputField('CFG_ADMINISTRATOR_USERNAME', null, 'class="text"');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_administrator_username_description');
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_administrator_password') . '<br />' . HTML::inputField('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 OSCOM::getDef('param_time_zone') . '<br />' . HTML::timeZoneSelectMenu('CFG_TIME_ZONE', ini_get('date.timezone') ?: null);
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_time_zone_description');
?>
예제 #8
0
    <p><label for="tax_rate"><?php 
echo OSCOM::getDef('field_tax_rate');
?>
</label><?php 
echo HTML::inputField('tax_rate');
?>
</p>
    <p><label for="tax_description"><?php 
echo OSCOM::getDef('field_tax_rate_description');
?>
</label><?php 
echo HTML::inputField('tax_description');
?>
</p>
    <p><label for="tax_priority"><?php 
echo OSCOM::getDef('field_tax_rate_priority');
?>
</label><?php 
echo HTML::inputField('tax_priority');
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id']), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

  </form>
</div>
echo OSCOM::getDef('field_definition_value');
?>
</label>

<?php 
foreach ($OSCOM_Language->getAll() as $l) {
    echo '<br />' . $OSCOM_Language->showImage($l['code']) . '<br />' . HTML::textareaField('value[' . $l['id'] . ']');
}
?>

    </p>
    <p><label for="defgroup"><?php 
echo OSCOM::getDef('field_definition_group');
?>
</label><?php 
echo HTML::inputField('defgroup', isset($_GET['group']) ? $_GET['group'] : null);
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(null, null, 'id=' . $_GET['id'] . (isset($_GET['group']) ? '&group=' . $_GET['group'] : '')), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>

  </form>
</div>

<script type="text/javascript">
  var suggestGroups = <?php 
echo json_encode($groups_array);
예제 #10
0
  <p><?php 
echo OSCOM::getDef('introduction_edit_zone_group');
?>
</p>

  <fieldset>
    <p><label for="zone_name"><?php 
echo OSCOM::getDef('field_name');
?>
</label><?php 
echo HTML::inputField('zone_name', $OSCOM_ObjectInfo->get('geo_zone_name'));
?>
</p>
    <p><label for="zone_description"><?php 
echo OSCOM::getDef('field_description');
?>
</label><?php 
echo HTML::inputField('zone_description', $OSCOM_ObjectInfo->get('geo_zone_description'));
?>
</p>
  </fieldset>

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

  </form>
</div>
예제 #11
0
</label><?php 
echo HTML::inputField('credit_card_name', $OSCOM_ObjectInfo->get('credit_card_name'));
?>
</p>
    <p><label for="pattern"><?php 
echo OSCOM::getDef('field_pattern');
?>
</label><?php 
echo HTML::inputField('pattern', $OSCOM_ObjectInfo->get('pattern'));
?>
</p>
    <p><label for="sort_order"><?php 
echo OSCOM::getDef('field_sort_order');
?>
</label><?php 
echo HTML::inputField('sort_order', $OSCOM_ObjectInfo->get('sort_order'));
?>
</p>
    <p><label for="credit_card_status"><?php 
echo OSCOM::getDef('field_status');
?>
</label><?php 
echo HTML::checkboxField('credit_card_status', '1', $OSCOM_ObjectInfo->get('credit_card_status'));
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
예제 #12
0
</li>

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

      <li><?php 
    echo HTML::label(OSCOM::getDef('field_customer_date_of_birth'), 'dob_days', null, true) . ' ' . HTML::dateSelectMenu('dob', array('year' => $Qaccount->value('customers_dob_year'), 'month' => $Qaccount->value('customers_dob_month'), 'date' => $Qaccount->value('customers_dob_date')), false, null, null, date('Y') - 1901, -5);
    ?>
</li>

<?php 
}
?>

      <li><?php 
echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'email_address', null, true) . ' ' . HTML::inputField('email_address', $Qaccount->value('customers_email_address'));
?>
</li>
    </ol>
  </div>
</div>

<div class="submitFormButtons" style="text-align: right;">
  <?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_continue')));
?>
</div>

</form>
예제 #13
0
</div>

<div class="moduleBox">
  <form name="checkout" action="<?php 
echo OSCOM::getLink(null, 'Checkout', null, 'SSL');
?>
" method="post">

  <div style="float: right;">
    <?php 
echo HTML::button(array('icon' => 'triangle-1-e', 'title' => OSCOM::getDef('button_checkout')));
?>
  </div>

<?php 
if (!$OSCOM_Customer->isLoggedOn() && $OSCOM_Application->requireCustomerAccount()) {
    ?>

  <div class="content">
    <?php 
    echo 'E-Mail Address: ' . HTML::inputField('email', $OSCOM_Customer->getEMailAddress()) . ' or ' . HTML::link(OSCOM::getLink(null, 'Account', 'LogIn', 'SSL'), 'Sign-In') . ' to process this order';
    ?>
  </div>

<?php 
}
?>

  </form>
</div>
    echo OSCOM::getDef('field_date_of_birth');
    ?>
</label><?php 
    echo HTML::inputField('dob', $new_customer ? null : DateTime::fromUnixTimestamp(DateTime::getTimestamp($OSCOM_ObjectInfo->get('customers_dob')), 'Y-m-d'));
    ?>
</p>

      <script>$('#dob').datepicker({dateFormat: 'yy-mm-dd', changeMonth: true, changeYear: true, yearRange: '-100:+0'});</script>

<?php 
}
?>

      <p><label for="email_address"><?php 
echo OSCOM::getDef('field_email_address');
?>
</label><?php 
echo HTML::inputField('email_address', $new_customer ? null : $OSCOM_ObjectInfo->get('customers_email_address'));
?>
</p>
      <p><label for="status"><?php 
echo OSCOM::getDef('field_status');
?>
</label><?php 
echo HTML::checkboxField('status', null, $new_customer ? true : $OSCOM_ObjectInfo->get('customers_status') == '1');
?>
</p>
    </fieldset>
  </div>
</div>
예제 #15
0
          <td width="70%" valign="top">
            <h4><?php echo OSCOM::getDef('subsection_price'); ?></h4>

            <fieldset>
              <p><label for="variants_price_tax_class"><?php echo OSCOM::getDef('field_tax_class'); ?></label><?php echo HTML::selectMenu('variants_price_tax_class', $OSCOM_Application->getTaxClassesList(), null, 'onchange="updateGross(\'variants_price\');"'); ?></p>
              <p><label for="variants_price"><?php echo OSCOM::getDef('field_price_net'); ?></label><?php echo HTML::inputField('variants_price', null, 'onkeyup="updateGross(\'variants_price\')"'); ?></p>
              <p><label for="variants_price_gross"><?php echo OSCOM::getDef('field_price_gross'); ?></label><?php echo HTML::inputField('variants_price_gross', null, 'onkeyup="updateNet(\'variants_price\')"'); ?></p>
            </fieldset>

            <h4><?php echo OSCOM::getDef('subsection_data'); ?></h4>

            <fieldset>
              <p id="vstatus"><label for="variants_status"><?php echo OSCOM::getDef('field_status'); ?></label><?php echo HTML::radioField('variants_status', array(array('id' => '1', 'text' => OSCOM::getDef('status_enabled')), array('id' => '0', 'text' => OSCOM::getDef('status_disabled')))); ?></p>
              <p><label for="variants_model"><?php echo OSCOM::getDef('field_model'); ?></label><?php echo HTML::inputField('variants_model', null); ?></p>
              <p><label for="variants_quantity"><?php echo OSCOM::getDef('field_quantity'); ?></label><?php echo HTML::inputField('variants_quantity', null); ?></p>
              <p><label for="variants_weight"><?php echo OSCOM::getDef('field_weight'); ?></label><?php echo HTML::inputField('variants_weight', null, 'size="6"'). HTML::selectMenu('variants_weight_class', $OSCOM_Application->getWeightClassesList(), SHIPPING_WEIGHT_UNIT); ?></p>
              <p><label for="variants_default"><?php echo OSCOM::getDef('field_default'); ?></label><?php echo HTML::checkboxField('variants_default'); ?></p>
            </fieldset>

<script>
$(function() {
  $('#vstatus').buttonset();
});
</script>

          </td>
        </tr>
      </table>

      <p id="variantSubmitButtonsNew"><?php echo HTML::button(array('type' => 'button', 'params' => 'onclick="processVariantForm();"', 'priority' => 'primary', 'icon' => 'plus', 'title' => OSCOM::getDef('button_add'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p>
      <p id="variantSubmitButtonsEdit"><?php echo HTML::button(array('type' => 'button', 'params' => 'data-vButtonType="henrysBucket"', 'priority' => 'primary', 'icon' => 'arrowrefresh-1-n', 'title' => OSCOM::getDef('button_update'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p>
예제 #16
0
  <p><?php 
echo OSCOM::getDef('introduction_new_zone_group');
?>
</p>

  <fieldset>
    <p><label for="zone_name"><?php 
echo OSCOM::getDef('field_name');
?>
</label><?php 
echo HTML::inputField('zone_name');
?>
</p>
    <p><label for="zone_description"><?php 
echo OSCOM::getDef('field_description');
?>
</label><?php 
echo HTML::inputField('zone_description');
?>
</p>
  </fieldset>

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

  </form>
</div>
예제 #17
0
 public function getInputField($value) {
   return HTML::inputField('attributes[' . self::getID() . ']', $value, 'id="attributes_' . self::getID() . '"') . '<script>$(function() { $("#attributes_' . self::getID() . '").datepicker( { dateFormat: "yy-mm-dd", changeMonth: true, changeYear: true } ); });</script>';
 }
  <p><?php 
echo OSCOM::getDef('introduction_batch_edit_configuration_parameters');
?>
</p>

  <fieldset>

<?php 
$Qcfg = $OSCOM_PDO->query('select configuration_id, configuration_title, configuration_key, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_id in (' . implode(',', array_unique(array_filter($_POST['batch'], 'is_numeric'))) . ')');
$Qcfg->execute();
while ($Qcfg->fetch()) {
    if (strlen($Qcfg->value('set_function')) > 0) {
        $value_field = Configuration::callUserFunc($Qcfg->value('set_function'), $Qcfg->value('configuration_value'), $Qcfg->value('configuration_key'));
    } else {
        $value_field = HTML::inputField('configuration[' . $Qcfg->value('configuration_key') . ']', $Qcfg->value('configuration_value'));
    }
    ?>

    <p><label for="configuration[<?php 
    echo $Qcfg->valueProtected('configuration_key');
    ?>
]"><?php 
    echo $Qcfg->valueProtected('configuration_title');
    ?>
</label><?php 
    echo $value_field . HTML::hiddenField('batch[]', $Qcfg->valueInt('configuration_id'));
    ?>
</p>

    <p><?php 
예제 #19
0
" method="post">

  <h6><?php 
echo OSCOM::getDef('login_returning_customer_heading');
?>
</h6>

  <div class="content">
    <p><?php 
echo OSCOM::getDef('login_returning_customer_text');
?>
</p>

    <ol>
      <li><?php 
echo HTML::label(OSCOM::getDef('field_customer_email_address'), 'email_address') . HTML::inputField('email_address');
?>
</li>
      <li><?php 
echo HTML::label(OSCOM::getDef('field_customer_password'), 'password') . HTML::passwordField('password');
?>
</li>
    </ol>

    <p><?php 
echo sprintf(OSCOM::getDef('login_returning_customer_password_forgotten'), OSCOM::getLink(null, null, 'PasswordForgotten', 'SSL'));
?>
</p>

    <p align="right"><?php 
echo HTML::button(array('icon' => 'key', 'title' => OSCOM::getDef('button_sign_in')));
예제 #20
0
</label><?php 
echo HTML::inputField('countries_name', $OSCOM_ObjectInfo->get('countries_name'));
?>
</p>
    <p><label for="countries_iso_code_2"><?php 
echo OSCOM::getDef('field_iso_code_2');
?>
</label><?php 
echo HTML::inputField('countries_iso_code_2', $OSCOM_ObjectInfo->get('countries_iso_code_2'));
?>
</p>
    <p><label for="countries_iso_code_3"><?php 
echo OSCOM::getDef('field_iso_code_3');
?>
</label><?php 
echo HTML::inputField('countries_iso_code_3', $OSCOM_ObjectInfo->get('countries_iso_code_3'));
?>
</p>
    <p><label for="address_format"><?php 
echo OSCOM::getDef('field_address_format');
?>
</label><?php 
echo HTML::textareaField('address_format', $OSCOM_ObjectInfo->get('address_format'));
?>
<br /><i>:name</i>, <i>:street_address</i>, <i>:suburb</i>, <i>:city</i>, <i>:postcode</i>, <i>:state</i>, <i>:state_code</i>, <i>:country</i></p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
예제 #21
0
  <fieldset>
    <p><label for="parent_id"><?php 
echo OSCOM::getDef('field_parent_category');
?>
</label><?php 
echo HTML::selectMenu('parent_id', array_merge(array(array('id' => '0', 'text' => OSCOM::getDef('top_category'))), $OSCOM_Application->getCategoryList()), $OSCOM_ObjectInfo->getInt('parent_id'));
?>
</p>
    <p><label><?php 
echo OSCOM::getDef('field_name');
?>
</label></p>

<?php 
foreach ($OSCOM_Language->getAll() as $l) {
    echo '<p>' . $OSCOM_Language->showImage($l['code']) . '&nbsp;' . $l['name'] . '<br />' . HTML::inputField('categories_name[' . $l['id'] . ']', Categories::get($OSCOM_ObjectInfo->getInt('categories_id'), 'categories_name', $l['id'])) . '</p>';
}
?>

    <p><label><?php 
echo OSCOM::getDef('field_image');
?>
</label></p>
    <p id="cImage" class="imageSelectorPlaceholder"></p>

    <p><label><?php 
echo OSCOM::getDef('field_image_browser');
?>
</label></p>
    <div class="imageSelector">
      <ul id="cImages"></ul>
<?php 
if (ACCOUNT_TELEPHONE > -1) {
    ?>

  <li><?php 
    echo HTML::label(OSCOM::getDef('field_customer_telephone_number'), 'telephone', null, ACCOUNT_TELEPHONE > 0) . HTML::inputField('telephone', isset($osC_oiAddress) && $osC_oiAddress->exists('telephone') ? $osC_oiAddress->get('telephone') : null);
    ?>
</li>

<?php 
}
if (ACCOUNT_FAX > -1) {
    ?>

  <li><?php 
    echo HTML::label(OSCOM::getDef('field_customer_fax_number'), 'fax', null, ACCOUNT_FAX > 0) . HTML::inputField('fax', isset($osC_oiAddress) && $osC_oiAddress->exists('fax') ? $osC_oiAddress->get('fax') : null);
    ?>
</li>

<?php 
}
if ($OSCOM_Customer->hasDefaultAddress() && (isset($_GET['Edit']) && $OSCOM_Customer->getDefaultAddressID() != $_GET['Edit'] || isset($_GET['Create']))) {
    ?>

  <li><?php 
    echo HTML::checkboxField('primary', array(array('id' => 'on', 'text' => OSCOM::getDef('set_as_primary'))), false);
    ?>
</li>

<?php 
}
예제 #23
0
</label><?php 
echo HTML::inputField('credit_card_name');
?>
</p>
    <p><label for="pattern"><?php 
echo OSCOM::getDef('field_pattern');
?>
</label><?php 
echo HTML::inputField('pattern');
?>
</p>
    <p><label for="sort_order"><?php 
echo OSCOM::getDef('field_sort_order');
?>
</label><?php 
echo HTML::inputField('sort_order');
?>
</p>
    <p><label for="credit_card_status"><?php 
echo OSCOM::getDef('field_status');
?>
</label><?php 
echo HTML::checkboxField('credit_card_status', '1');
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('priority' => 'primary', 'icon' => 'check', 'title' => OSCOM::getDef('button_save'))) . ' ' . HTML::button(array('href' => OSCOM::getLink(), 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel')));
?>
</p>
예제 #24
0
  <p><?php 
echo OSCOM::getDef('introduction_new_tax_class');
?>
</p>

  <fieldset>
    <p><label for="tax_class_title"><?php 
echo OSCOM::getDef('field_title');
?>
</label><?php 
echo HTML::inputField('tax_class_title');
?>
</p>
    <p><label for="tax_class_description"><?php 
echo OSCOM::getDef('field_description');
?>
</label><?php 
echo HTML::inputField('tax_class_description');
?>
</p>
  </fieldset>

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

  </form>
</div>
예제 #25
0
?>
</p>

  <fieldset>

<?php 
$keys = '';
foreach ($OSCOM_ObjectInfo->get('keys') as $key) {
    $Qkey = $OSCOM_PDO->prepare('select configuration_title, configuration_value, configuration_description, use_function, set_function from :table_configuration where configuration_key = :configuration_key');
    $Qkey->bindValue(':configuration_key', $key);
    $Qkey->execute();
    $keys .= '<p><label for="' . $key . '">' . $Qkey->value('configuration_title') . '</label><br />' . $Qkey->value('configuration_description');
    if (strlen($Qkey->value('set_function')) > 0) {
        $keys .= Configuration::callUserFunc($Qkey->value('set_function'), $Qkey->value('configuration_value'), $key);
    } else {
        $keys .= HTML::inputField('configuration[' . $key . ']', $Qkey->value('configuration_value'));
    }
    $keys .= '</p>';
}
echo $keys;
?>

  </fieldset>

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

  </form>
</div>
예제 #26
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<form id="liveSearchForm">
  <?php 
echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset'))) . '&nbsp;' . HTML::selectMenu('cid', array_merge(array(array('id' => '0', 'text' => OSCOM::getDef('top_category'))), $OSCOM_Application->getCategoryList()));
?>

  <span style="float: right;">

<?php 
if ($OSCOM_Application->getCurrentCategoryID() > 0) {
    echo HTML::button(array('href' => OSCOM::getLink(null, null, 'cid=' . $OSCOM_CategoryTree->getParentID($OSCOM_Application->getCurrentCategoryID())), 'priority' => 'secondary', 'icon' => 'triangle-1-w', 'title' => OSCOM::getDef('button_back'))) . ' ';
}
echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Save&cid=' . $OSCOM_Application->getCurrentCategoryID()), 'icon' => 'plus', 'title' => OSCOM::getDef('button_insert')));
?>

  </span>
</form>

<script>
예제 #27
0
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_database_type') . '<br />' . HTML::selectMenu('DB_DATABASE_CLASS', $db_table_types);
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_database_type_description');
?>
</td>
      </tr>
      <tr>
        <td class="inputField"><?php 
echo OSCOM::getDef('param_database_prefix') . '<br />' . HTML::inputField('DB_TABLE_PREFIX', 'osc_', 'class="text"');
?>
</td>
        <td class="inputDescription"><?php 
echo OSCOM::getDef('param_database_prefix_description');
?>
</td>
      </tr>
    </table>

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

    </form>
예제 #28
0
  <fieldset>
    <p><label for="parent_id"><?php 
echo OSCOM::getDef('field_parent_category');
?>
</label><?php 
echo HTML::selectMenu('parent_id', array_merge(array(array('id' => '0', 'text' => OSCOM::getDef('top_category'))), $OSCOM_Application->getCategoryList()), $OSCOM_Application->getCurrentCategoryID());
?>
</p>
    <p><label><?php 
echo OSCOM::getDef('field_name');
?>
</label></p>

<?php 
foreach ($OSCOM_Language->getAll() as $l) {
    echo '<p>' . $OSCOM_Language->showImage($l['code']) . '&nbsp;' . $l['name'] . '<br />' . HTML::inputField('categories_name[' . $l['id'] . ']') . '</p>';
}
?>

    <p><label><?php 
echo OSCOM::getDef('field_image');
?>
</label></p>
    <p id="cImage" class="imageSelectorPlaceholder"></p>

    <p><label><?php 
echo OSCOM::getDef('field_image_browser');
?>
</label></p>
    <div class="imageSelector">
      <ul id="cImages"></ul>
예제 #29
0
?>

<h1><?php 
echo $OSCOM_Template->getIcon(32) . HTML::link(OSCOM::getLink(), $OSCOM_Template->getPageTitle());
?>
</h1>

<?php 
if ($OSCOM_MessageStack->exists()) {
    echo $OSCOM_MessageStack->get();
}
?>

<form id="liveSearchForm">
  <?php 
echo HTML::inputField('search', null, 'id="liveSearchField" class="searchField" placeholder="' . OSCOM::getDef('placeholder_search') . '"') . HTML::button(array('type' => 'button', 'params' => 'onclick="osC_DataTable.reset();"', 'title' => OSCOM::getDef('button_reset')));
?>

  <span style="float: right;"><?php 
echo HTML::button(array('href' => OSCOM::getLink(null, null, 'Save'), 'icon' => 'plus', 'title' => OSCOM::getDef('button_insert')));
?>
</span>
</form>

<div style="padding: 20px 5px 5px 5px; height: 16px;">
  <span id="batchTotalPages"></span>
  <span id="batchPageLinks"></span>
</div>

<form name="batch" action="#" method="post">
예제 #30
0
  <form id="formLogin" name="login" class="dataForm" action="<?php 
echo OSCOM::getLink(null, null, 'Process');
?>
" method="post">

  <p><?php 
echo OSCOM::getDef('introduction');
?>
</p>

  <fieldset>
    <p><label for="user_name"><?php 
echo OSCOM::getDef('field_username');
?>
</label><?php 
echo HTML::inputField('user_name', null, 'tabindex="1"');
?>
</p>
    <p><label for="user_password"><?php 
echo OSCOM::getDef('field_password');
?>
</label><?php 
echo HTML::passwordField('user_password', 'tabindex="2"');
?>
</p>
  </fieldset>

  <p><?php 
echo HTML::button(array('icon' => 'key', 'title' => OSCOM::getDef('button_login')));
?>
</p>