Ejemplo n.º 1
0
<form method="get" accept-charset="UTF-8">
  <div style="width: 100%;" id="div_list">
    <table class="form-item-table-full" style="margin-bottom: 20px;">
      <tr>
        <td colspan="2">
          <div class="form-item-div">
            <div class="form-item-left">
              <h4>
                <?php echo t('Alerts'); ?>
              </h4>
              <p class="discrips">
                <?php echo t('Alerts are listed below.'); ?>
              </p>
            </div>
            <?php if (check_user_has_edit_access('alert')) { ?>
              <div class="form-item-right" style="padding-right: 10px;">
                <a id="secondary_submit" href="<?php echo url('alert/config/subscribe/admin') ?>">Manage Alert Subscriptions</a>
              </div>
            <?php } ?>
            <?php if (is_cot_admin()) { ?>
              <div class="form-item-right" style="padding-right: 10px;">
                <a id="secondary_submit" href="<?php echo url('alert/template/list') ?>">Manage Message Template</a>
              </div>
            <?php } ?>
            <?php if (is_cot_admin()) { ?>
              <div class="form-item-right" style="padding-right: 10px;">
                <a id="secondary_submit" href="<?php echo url('alert/notification/list') ?>">Manage General Notification</a>
              </div>
            <?php } ?>
          </div>
        </td>
                <a href="<?php echo url('trade_embargo_country/analyze_exceptions'); ?>" class="form-submit secondary_submit" id="analyze_exceptions">Analyze Exceptions</a>
              </div>
            <?php } ?>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <div class="form-item-left">
              <?php echo drupal_render($trade_embargo['form']['serail_number']); ?>
            </div>
            <div class="form-item-left" style="margin-left:20px;">
              <?php echo drupal_render($trade_embargo['form']['submit']); ?>
            </div>
          </td>
          <td>
            <?php if (check_user_has_edit_access('trade_embargo')) { ?>
              <div class="form-item-right">
                <a href="<?php echo url('trade_embargo_country/apply_exceptions'); ?>" class="form-submit secondary_submit" id="apply_exceptions" onclick="if (!confirm('Are you sure you want to apply exceptions?')) {
                      return false;
                    }">Apply Exceptions</a>
              </div>
            <?php } ?>
          </td>
        </tr>
      </tbody>
    </table>
  </div>

  <div id="country_list">
    <?php echo $trade_embargo['table']; ?>
  </div>