<?php
global $base_url;
global $drupal_abs_path;
global $user;
?>
<center>
  <div id="div_error" style="width: 500px; display: none; font-weight: bold; color: red"></div>
</center>
<div class="tabs_wrapper">
</div>
<form action="<?php print $base_url ?>/alert/config/subscribeSave" accept-charset="UTF-8" method="post" id="node-form">
  <div>
    <?php
    global $user;
    if ($user->uid != 1 && is_cot_admin()) {
      ?>
      <table class="form-item-table-full"
             style="margin-left: -5px;" id="cot-admin-tbl">
        <tbody>
          <tr>
            <td>
              <div class="form-item-div">
                <div class="form-item-left" style="width:210px;">
                  <label for="subscription-type-a" style="display: inline;">Manage Subscription By User Role</label>
                </div>
                <div class="form-item-left">
                  <input type="radio" value="A" name="subscriptionType"
                         id="subscription-type-a" style="float: right; margin: 4px;" <?php echo $subscriptionType['admin']; ?>/>
                </div>
              </div>
            </td>
         </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>
 </tr>
 <tr>
   <td style="padding-left: 30px;">
     <div class="form-item-left">
       <label><?php echo t('Select Device Type:'); ?> </label>
     </div>
   </td>
   <td>
     <div class="form-item-left">