Ejemplo n.º 1
0
 /**
  * Constructor
  *
  * @return  void
  */
 public function __construct()
 {
     if (!self::$dbh) {
         self::$dbh = App::get('db');
     }
     if (!self::$possibleCols) {
         self::$dbh->setQuery('SELECT field, label FROM `#__incremental_registration_labels` ORDER BY label');
         self::$possibleCols = array_map(function ($v) {
             return $v['label'];
         }, self::$dbh->loadAssocList('field'));
     }
 }
Ejemplo n.º 2
0
 * HUBzero is a registered trademark of Purdue University.
 *
 * @package   hubzero-cms
 * @copyright Copyright 2005-2015 HUBzero Foundation, LLC.
 * @license   http://opensource.org/licenses/MIT MIT
 */
// No direct access
defined('_HZEXEC_') or die;
Toolbar::title(Lang::txt('COM_MEMBERS_REGISTRATION') . ': ' . Lang::txt('Incremental Options'), 'user.png');
Toolbar::save();
$dbh = App::get('db');
$dbh->setQuery('SELECT popover_text, award_per, test_group FROM `#__incremental_registration_options` ORDER BY added DESC LIMIT 1');
list($popoverText, $awardPer, $testGroup) = $dbh->loadRow();
$dbh->setQuery('SELECT hours FROM `#__incremental_registration_popover_recurrence` ORDER BY idx');
$recur = $dbh->loadColumn();
$groups = new ModIncrementalRegistrationGroups();
$possibleCols = $groups->getPossibleColumns();
$groupDefs = $groups->getAllGroups();
?>
<script type="text/javascript">
	var possibleCols = <?php 
echo json_encode($possibleCols);
?>
;

	function submitbutton(pressbutton) {
		submitform(pressbutton);
	}
	var addField = function(that, idx) {
		var li = document.createElement('li');
		var ul = that.previousSibling;