Ejemplo n.º 1
0
?>
</th>
      <th width="150"><?php 
echo OSCOM::getDef('table_heading_action');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="4"><?php 
echo HTML::submitImage(HTML::iconRaw('trash.png'), OSCOM::getDef('icon_trash'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchDelete') . '\';"');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
Ejemplo n.º 2
0
?>
</th>
      <th width="150"><?php 
echo OSCOM::getDef('table_heading_action');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="2"><?php 
echo HTML::submitImage(HTML::iconRaw('move.png'), OSCOM::getDef('icon_move'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchMove&cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"') . '&nbsp;<a href="#" onclick="$(\'#dialogBatchDeleteConfirm\').dialog(\'open\'); return false;">' . HTML::icon('trash.png') . '</a>';
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
            $('#ab_state').val(state);
          }
        }
      } else {
        alert('Error: The country zones list could not be populated.'); // HPDL improve
      }
    });
  });
});

var gender_male_icon = '<?php 
echo HTML::iconRaw('user_male.png', '32x32');
?>
';
var gender_female_icon = '<?php 
echo HTML::iconRaw('user_female.png', '32x32');
?>
';
var telephone_icon = '<?php 
echo HTML::icon('telephone.png', null, null, 'style="margin-right: 6px;"');
?>
';
var fax_icon = '<?php 
echo HTML::icon('fax.png', null, null, 'style="margin-right: 6px;"');
?>
';
var edit_icon = '<?php 
echo HTML::icon('edit.png');
?>
';
var trash_icon = '<?php 
Ejemplo n.º 4
0
?>
</th>
      <th width="150"><?php 
echo OSCOM::getDef('table_heading_action');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="3"><?php 
echo HTML::submitImage(HTML::iconRaw('edit.png'), OSCOM::getDef('icon_edit'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchSaveDefinitions&id=' . $_GET['id'] . '&group=' . $_GET['group']) . '\';"') . '&nbsp;' . HTML::submitImage(HTML::iconRaw('trash.png'), OSCOM::getDef('icon_trash'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchDeleteDefinitions&id=' . $_GET['id'] . '&group=' . $_GET['group']) . '\';"');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
Ejemplo n.º 5
0
?>
</th>
      <th width="150"><?php 
echo OSCOM::getDef('table_heading_action');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="3"><?php 
echo HTML::submitImage(HTML::iconRaw('edit.png'), OSCOM::getDef('icon_edit'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchSaveEntries&id=' . $_GET['id']) . '\';"');
?>
</th>
      <th align="center" width="20"><?php 
echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"');
?>
</th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px; min-height: 16px;">
Ejemplo n.º 6
0
 /**
  * Get the messages belonging to a group. The messages are placed into an
  * unsorted list wrapped in a DIV element with the "messageStack" style sheet
  * class.
  *
  * @param string $group The name of the group to get the messages from
  * @since v3.0.0
  */
 public function get($group = null)
 {
     if (!isset($group)) {
         $group = OSCOM::getSiteApplication();
     }
     $result = false;
     if ($this->exists($group)) {
         $result = '<div class="messageStack"><ul>';
         foreach ($this->_data[$group] as $message) {
             switch ($message['type']) {
                 case 'error':
                     $bullet_image = 'error.gif';
                     break;
                 case 'warning':
                     $bullet_image = 'warning.gif';
                     break;
                 case 'success':
                 default:
                     $bullet_image = 'success.gif';
                     break;
             }
             $result .= '<li style="list-style-image: url(\'' . HTML::iconRaw($bullet_image) . '\')">' . HTML::output($message['text']) . '</li>';
         }
         $result .= '</ul></div>';
         unset($this->_data[$group]);
     }
     return $result;
 }
Ejemplo n.º 7
0
 public function testSubmitImage()
 {
     $this->assertEquals('<input type="image" src="public/sites/Shop/templates/oscom/images/icons/16x16/edit.png" title="Edit" id="editSubmitImage" />', HTML::submitImage(HTML::iconRaw('edit.png'), 'Edit', 'id="editSubmitImage"'));
 }
Ejemplo n.º 8
0
<form name="batch" action="#" method="post">

<table border="0" width="100%" cellspacing="0" cellpadding="2" class="dataTable" id="productsDataTable">
  <thead>
    <tr>
      <th><?php echo OSCOM::getDef('table_heading_products'); ?></th>
      <th><?php echo OSCOM::getDef('table_heading_price'); ?></th>
      <th><?php echo OSCOM::getDef('table_heading_quantity'); ?></th>
      <th width="150"><?php echo OSCOM::getDef('table_heading_action'); ?></th>
      <th align="center" width="20"><?php echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>
    </tr>
  </thead>
  <tfoot>
    <tr>
      <th align="right" colspan="4"><?php echo HTML::submitImage(HTML::iconRaw('copy.png'), OSCOM::getDef('icon_copy'), 'onclick="document.batch.action=\'' . OSCOM::getLink(null, null, 'BatchCopy&cid=' . $OSCOM_Application->getCurrentCategoryID()) . '\';"') . '&nbsp;<a href="#" onclick="$(\'#dialogBatchDeleteConfirm\').dialog(\'open\'); return false;">' . HTML::icon('trash.png') . '</a>'; ?></th>
      <th align="center" width="20"><?php echo HTML::checkboxField('batchFlag', null, null, 'onclick="flagCheckboxes(this);"'); ?></th>
    </tr>
  </tfoot>
  <tbody>
  </tbody>
</table>

</form>

<div style="padding: 2px;">
  <span id="dataTableLegend"><?php echo '<b>' . OSCOM::getDef('table_action_legend') . '</b> ' . HTML::icon('edit.png') . '&nbsp;' . OSCOM::getDef('icon_edit') . '&nbsp;&nbsp;' . HTML::icon('copy.png') . '&nbsp;' . OSCOM::getDef('icon_copy') . '&nbsp;&nbsp;' . HTML::icon('trash.png') . '&nbsp;' . OSCOM::getDef('icon_trash'); ?></span>
  <span id="batchPullDownMenu"></span>
</div>

<script>