Example #1
0
			</td>
		</tr>
		
		<tr>
			<th><label for='action_type'><?php 
echo _('Type') . required();
?>
</label></th> 
			<td class="left nobborder">
				<select name="action_type" class="vfield" id="action_type" onChange="changeType()" onfocus='set_focus(this);'>
					<option value="" selected='selected'> -- <?php 
echo _("Select an action type");
?>
 -- </option>
					<?php 
$action_type_list = Action_type::get_list($conn);
if (is_array($action_type_list)) {
    foreach ($action_type_list as $action_type_aux) {
        $selected = $action_type == $action_type_aux->get_type() ? "selected='selected'" : "";
        echo "<option value='" . $action_type_aux->get_type() . "' {$selected}>" . _($action_type_aux->get_descr()) . "</option>";
    }
}
?>
				</select>
			</td>
		</tr>

		<tr>
            <th>
                <span class="s_label" id='only'><?php 
echo _('Condition');
Example #2
0
    ?>
" />
      <b><?php 
    echo $action_type;
    ?>
</b>
    <?php 
} else {
    ?>
      <select name="action_type" id="action_type" onChange="changeType()">
        <option value=""> -- <?php 
    echo gettext("Select an action type");
    ?>
 -- </option>
        <?php 
    if (is_array($action_type_list = Action_type::get_list($conn))) {
        foreach ($action_type_list as $action_type_aux) {
            ?>
                <option
                    value="<?php 
            echo $action_type_aux->get_type();
            ?>
"
                    <?php 
            if ($action_type == $action_type_aux->get_type()) {
                echo " SELECTED ";
            }
            ?>
>
                    <?php 
            echo _($action_type_aux->get_descr());