Ejemplo n.º 1
0
        ?>
</td>

		      			<td><?php 
        $options = array();
        $options[] = JHTML::_('select.option', "0", JText::_('DT_NONE'));
        $options[] = JHTML::_('select.option', "1", JText::_('DT_INDIVIDUAL'));
        $options[] = JHTML::_('select.option', "2", JText::_('DT_GROUP'));
        $options[] = JHTML::_('select.option', "3", JText::_('DT_BOTH'));
        $options[] = JHTML::_('select.option', "-1", JText::_('DT_DEFAULT'));
        echo JHTML::_('select.radiolist', $options, "data[field][" . $rowField->id . "][showed]", ' class="fields" ', 'value', 'text', $showed);
        ?>
</td>

                        <td><?php 
        echo JHTMLSelect::booleanlist("data[field][" . $rowField->id . "][required]", "", $required);
        ?>
</td>

                <td>

		      		  <?php 
        $options = array();
        $options[] = JHTML::_('select.option', "1", JText::_('DT_EACH_MEMBER'));
        $options[] = JHTML::_('select.option', "2", JText::_('DT_BILLING_ONLY'));
        $options[] = JHTML::_('select.option', "3", JText::_('DT_MEMBERS_BILLING'));
        echo JHTML::_('select.radiolist', $options, 'data[field][' . $rowField->id . '][group_behave]', '', 'value', 'text', $group);
        ?>

		      			</td>
Ejemplo n.º 2
0
      </tr>

       <tr>

         <td>

           <?php 
echo JText::_('DT_PAY_LATER_PAID');
?>

         </td>

         <td>     

         <?php 
echo JHTMLSelect::booleanlist("User[Fee][status]", "", isset($tUser->fee->status) ? $tUser->fee->status : 0);
?>

         </td><td>&nbsp;</td>

      </tr>

       <tr>

         <td>

           <?php 
echo JText::_('DT_AMOUNT_PAID');
?>

         </td>
Ejemplo n.º 3
0


				<td valign="top"><?php 
echo JText::_('DT_REQUIRED');
?>
:</td>



				<td valign="top">



				<?php 
echo JHTMLSelect::booleanlist('required', $atttribute, $row->required);
?>



				</td>



				<td valign="top"><?php 
echo JHTML::tooltip(JText::_('DT_HELP_FIELD_REQUIRED'), '', 'tooltip.png', '', '');
?>
</td>


</legend>
				<table class="adminform">
					<tr class="row<?php 
echo $i;
?>
">
						<td width="21%"><div style="text-align: right; font-weight: bold;">
						<?php 
echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_PUBLISH');
?>
</div>
						</td>
						<td width="79%">
							<fieldset class="radio">
							<?php 
echo JHTMLSelect::booleanlist('published', null, $this->product->published);
?>
							</fieldset>
						</td>
					</tr>
				<?php 
$i = 1 - $i;
?>
				<tr class="row<?php 
echo $i;
?>
">
					<td width="21%" >
						<div style="text-align:right;font-weight:bold;"><?php 
echo JText::_('COM_VIRTUEMART_PRODUCT_FORM_SKU');
?>
Ejemplo n.º 5
0
    function fetchElement($name, $value, &$node, $control_name)
    {
        $timeMeasure = @$node->attributes('time_measure', 'seconds');
        $defaultQueries = @$node->attributes('default_queries', '');
        $defaultTime = @$node->attributes('default_time', '');
        if (!is_array($value)) {
            $value = array();
            $value[0] = $defaultQueries;
            $value[1] = $defaultTime;
        }
        $enabled = 0;
        if (count($value) == 4) {
            $enabled = $value[0];
            array_shift($value);
        } elseif (count($value) == 3) {
            $enabled = 1;
        }
        $html = '';
        if ($node->attributes('selectable', 0)) {
            $html = JHTMLSelect::booleanlist($control_name . '[' . $name . '][]', 'class="inputbox"', $enabled);
        } else {
            $html = '<div style="float:left; width:87px; clear: both">&nbsp;</div>';
        }
        $baseName = $control_name . '[' . $name . ']';
        $html .= '<input id="' . $baseName . '0" style="width: 50px" type="text" name="' . $baseName . '[]" value="' . @$value[0] . '" class="inputbox" /> ' . JText::_('or more queries in') . ' ';
        $html .= '<input id="' . $baseName . '1" style="width: 50px" type="text" name="' . $baseName . '[]" value="' . @$value[1] . '" class="inputbox" /> ' . JString::ucfirst(JText::_($timeMeasure)) . ' ';
        $html .= '<input id="' . $baseName . '2" type="hidden" name="' . $baseName . '[]" value="' . $timeMeasure . '" />';
        if ($timeMeasure) {
            ob_start();
            ?>
			window.addEvent('domready', function() {
				var c = $('<?php 
            echo $baseName;
            ?>
[]0');
				if ( c ) {
					c.addEvent('click', function() {
						$('<?php 
            echo $baseName;
            ?>
0').setProperty('disabled', true);
						$('<?php 
            echo $baseName;
            ?>
1').setProperty('disabled', true);
						$('<?php 
            echo $baseName;
            ?>
2').setProperty('disabled', true);
					});
					
					if (c.getProperty('checked')) {
						$('<?php 
            echo $baseName;
            ?>
0').setProperty('disabled', true);
						$('<?php 
            echo $baseName;
            ?>
1').setProperty('disabled', true);
						$('<?php 
            echo $baseName;
            ?>
2').setProperty('disabled', true);
					}
				}
				
				c = $('<?php 
            echo $baseName;
            ?>
[]1');
				if ( c ) {
					c.addEvent('click', function() {
						$('<?php 
            echo $baseName;
            ?>
0').removeProperty('disabled');
						$('<?php 
            echo $baseName;
            ?>
1').removeProperty('disabled');
						$('<?php 
            echo $baseName;
            ?>
2').removeProperty('disabled');
					});
				}
			});
			<?php 
            $document =& JFactory::getDocument();
            $document->addScriptDeclaration(ob_get_clean());
        }
        return '<div style="white-space:nowrap;">' . $html . '</div>';
    }
Ejemplo n.º 6
0
 /**
  * Generates a yes/no radio list with the arguments in a consistent order
  *
  * @param string The value of the HTML name attribute
  * @param string Additional HTML attributes for the <select> tag
  * @param mixed The key that is selected
  * @returns string HTML for the radio list
  */
 public static function booleanlist($selected, $name = '', $attribs = null, $yes = 'yes', $no = 'no', $id = false)
 {
     return parent::booleanlist($name, $attribs, $selected, $yes, $no, $id);
 }
Ejemplo n.º 7
0
				 <br />{GROUP_MEMBER}  {/GROUP_MEMBER} - <?php 
echo JText::_('DT_TAG_GROUP_MEMBER');
?>

                 </div>

                    </td>

					<td align="left" valign="top">

                    <?php 
echo JText::_('DT_ENABLE_FEATURE');
?>
: &nbsp;<?php 
echo JHTMLSelect::booleanlist("config[paid_status_change_msg_send]", "", $config->getGlobal('paid_status_change_msg_send', 1));
?>

                    <?php 
echo $editor->display("config[paid_status_change_msg]", stripslashes($config->getGlobal('paid_status_change_msg', '')), '', '340', '70', '20', '0');
?>
</td>

					<td align="center"><?php 
echo JHTML::tooltip(JText::_('DT_PAID_STATUS_CHANGE_MSG_HELP'));
?>
 </td>

				</tr>

                 <tr align="center" valign="middle">
Ejemplo n.º 8
0
     </td>

	  </tr>
    
    <tr align="center" valign="middle">

      	<td align="left" valign="top"><strong><?php 
echo JText::_('DT_EVENT_ADMIN_NOTIFICATION');
?>
:</strong>
             		<br /><br /><?php 
echo JText::_('DT_ENABLE_FEATURE');
?>
: <?php 
echo JHTMLSelect::booleanlist("data[event][admin_notification_set]", "", $row->admin_notification_set);
?>
 
          <div style="padding:5px 5px 5px 15px;">

                 <br /><?php 
echo JText::_('DT_TAG_INSERT_TEXT');
?>
:

                 	<br />[EVENT_NAME] - <?php 
echo JText::_('DT_TAG_EVENT_NAME');
?>

	                 <br />[EVENT_DATE] - <?php 
echo JText::_('DT_TAG_EVENT_DATE');
Ejemplo n.º 9
0
	  </tr>
	
	<tr><td colspan="2">&nbsp;</td></tr>

    <tr align="center" valign="middle">

      <td align="left" valign="top"><strong><?php 
echo JText::_('DT_CUSTOM_TERMS_CONDITIONS');
?>
:</strong>

        <br /><br /><?php 
echo JText::_('DT_ENABLE_FEATURE');
?>
: <?php 
echo JHTMLSelect::booleanlist("data[event][terms_conditions_set]", "", $row->terms_conditions_set);
?>

      </td>

       <td align="left" valign="top">
        <?php 
echo $editor->display("data[event][terms_conditions_msg]", stripslashes($row->terms_conditions_msg), '', '', '70', '20', '0');
?>
      </td>

		  <td colspan="2" align="left" valign="top"><?php 
echo JHTML::tooltip(JText::_('DT_CUSTOM_TERMS_CONDITIONS_HELP'), '', 'tooltip.png', '', '');
?>
</td>
 function _displayPredSettings($tpl)
 {
     $option = JRequest::getCmd('option');
     $mainframe =& JFactory::getApplication();
     $db =& JFactory::getDBO();
     $uri =& JFactory::getURI();
     $user =& JFactory::getUser();
     $model =& $this->getModel();
     $lists = array();
     //get the prediction game and the predicition project
     $prediction =& $this->get('data');
     $pred_project = $model->getPredictionProject();
     $isNew = $prediction->id < 1;
     // fail if checked out not by 'me'
     if ($model->isCheckedOut($user->get('id'))) {
         $msg = JText::sprintf('DESCBEINGEDITTED', JText::_('JL_ADMIN_PGAME_THE_PREDICTIONGAME'), $pred_project->project_name);
         $mainframe->redirect('index.php?option=' . $option, $msg);
     }
     // Edit or Create?
     if (!$isNew) {
         $model->checkout($user->get('id'));
     }
     // build the html radio for usage of published
     $lists['published'] = JHTML::_('select.booleanlist', 'published', 'class="inputbox" onclick="change_published(); " ', $pred_project->published);
     // build the html dropdown for Prediction game mode
     $mode = array(JHTMLSelect::option('1', JText::_('JL_ADMIN_PGAME_PRED_TOTO'), 'id', 'name'), JHTMLSelect::option('0', JText::_('JL_ADMIN_PGAME_PRED_TIPP'), 'id', 'name'));
     $lists['mode'] = JHTMLSelect::genericlist($mode, 'mode', 'class="inputbox" size="1" disabled="disabled" ', 'id', 'name', $pred_project->mode);
     unset($mode);
     // build the html dropdown for Prediction game mode
     $overview = array(JHTMLSelect::option('1', JText::_('JL_ADMIN_PGAME_TIPP_HALF'), 'id', 'name'), JHTMLSelect::option('0', JText::_('JL_ADMIN_PGAME_TIPP_COMPLETE'), 'id', 'name'));
     $lists['overview'] = JHTMLSelect::genericlist($overview, 'overview', 'class="inputbox" size="1" disabled="disabled" ', 'id', 'name', $pred_project->overview);
     unset($overview);
     // build the html radio for usage of tipp joker
     $lists['use_joker'] = JHTMLSelect::booleanlist('joker', 'class="inputbox" onclick="change_joker(); " disabled="disabled" ', $pred_project->joker);
     // build the html radio for limitation of tipp joker
     $joker_limit = $pred_project->joker_limit > 0;
     $lists['joker_limit'] = JHTMLSelect::booleanlist('joker_limit_select', 'class="inputbox" onclick="change_jokerlimit(); " disabled="disabled" ', $joker_limit);
     // build the html radio for usage of tipp champ
     $lists['use_champ'] = JHTMLSelect::booleanlist('champ', 'class="inputbox" onclick="change_champ(); " disabled="disabled" ', $pred_project->champ);
     $league_teams[] = JHTML::_('select.option', '0', JText::_('JL_ADMIN_PGAME_SET_CHAMPION'), 'id', 'name');
     if ($allLeagues =& $model->getProjectTeams($pred_project->project_id)) {
         $league_teams = array_merge($league_teams, $allLeagues);
     }
     $lists['league_teams'] = JHTMLSelect::genericlist($league_teams, 'league_champ', 'class="inputbox" size="' . sizeof($allLeagues) . '"', 'id', 'name', $pred_project->league_champ);
     #echo '<pre>'.print_r($projects,true).'</pre>';
     unset($allLeagues);
     $this->assignRef('lists', $lists);
     $this->assignRef('prediction', $prediction);
     $this->assignRef('pred_project', $pred_project);
     parent::display($tpl);
 }