Example #1
0
 function buildProfileTypesforApplication($aid)
 {
     $selectedTypes = XiptHelperApps::getProfileTypeArray($aid);
     $allTypes = XiptHelperProfiletypes::getProfileTypeArray();
     $html = '';
     $html .= '<span>';
     foreach ($allTypes as $option) {
         // XITODO : improve following condition
         $selected = in_array($option, $selectedTypes) || in_array(XIPT_PROFILETYPE_ALL, $selectedTypes) ? ' checked="checked"' : '';
         $html .= '<lable><input type="checkbox" id="profileTypes' . $option . '" name="profileTypes[]" value="' . $option . '"' . $selected . '" style="margin: 0 5px 5px 0;" />';
         $html .= XiptHelperProfiletypes::getProfileTypeName($option) . '</lable>';
         $html .= '<div class="clr"></div>';
     }
     $html .= '</span>';
     return $html;
 }
Example #2
0
        ?>
							<A HREF="<?php 
        echo $link;
        ?>
"><?php 
        echo $field->name;
        ?>
</A>
					</span>
				</td>
				<td align="center" id="profiletype<?php 
        echo $id;
        ?>
">
					<?php 
        echo XiptHelperApps::getProfileTypeNames($id);
        ?>
				</td>			
			</tr>
	<?php 
        $count++;
    }
}
?>
	<tfoot>
	<tr>
		<td colspan="15">
			<?php 
echo $this->pagination->getListFooter();
?>
		</td>
Example #3
0
<div class="col width-45" style="float:left;">
	<fieldset class="adminform">
	<legend><?php 
echo $aModel->getPlugin($this->applicationId)->name;
?>
</legend>
		<div id="xiptPtype">
			<div style="float:left; font-weight:bold; margin-left:10%; padding:5px; width:27%; background: #EFEFEF;">
				<?php 
echo XiptText::_('FOR_PROFILETYPES');
?>
			</div>
			<div style="float:left; margin-left:20px; width:35%;">
				<?php 
echo XiptHelperApps::buildProfileTypesforApplication($this->applicationId);
?>
			</div>
			<div>
				<?php 
echo XiptText::_("SELECT");
?>
 : <a href="#" id="ptypeSelectAll"><?php 
echo XiptText::_('ALL');
?>
</a> | <a href="#" id="ptypeSelectNone"><?php 
echo XiptText::_('NONE');
?>
</a> 
			</div>
		</div>