Example #1
0
<h2><?php 
echo _t('IF_AN_EVENT_PERSON_IS_CONFIDENTIAL__');
?>
</h2>
<h3><?php 
echo _('CURRENT_SETTING') . ' : ' . $modes[$current_acl_mode];
?>
</h3>

<div class="form-container">
<form class="form-horizontal"  action='<?php 
echo get_url('admin', 'acl_mode');
?>
' method='post'>
<fieldset><legend></legend>
<?php 
shn_form_select(_t('SET_ACL_MODE'), 'acl_mode', array('options' => $modes, 'value' => $current_acl_mode));
?>
    <button type="submit" class="btn btn-primary" name='update_acl_mode' ><i class="icon-ok icon-white"></i> <?php 
echo _t('SAVE');
?>
</button>
</fieldset>
</form>
</div>
echo _t('ACTIONS');
?>
</legend>
	<a class="btn" href="<?php 
echo get_url('analysis', 'search_form', null, array('main_entity' => $main_entity));
?>
"><i class="icon-chevron-left"></i> <?php 
echo _t('BACK');
?>
</a>&nbsp;&nbsp;&nbsp;	
	<?php 
echo _t('CHANGE_VIEW__');
shn_form_select('', 'shuffle_results', array('value' => $search_entity, 'options' => $shuffle_options, 'br' => false));
shn_form_submit(_t('SUBMIT'), 'shuffle');
echo "&nbsp;&nbsp;&nbsp;";
shn_form_select('', 'actions', array('value' => $_POST['actions'], 'options' => $actions));
shn_form_submit(_t('SUBMIT'), 'action');
?>
</fieldset>

<?php 
if (is_array($search_form) && count($search_form) != 0) {
    ?>
<fieldset style="border:0px;margin:0px;" >
    <legend><?php 
    echo _t('SEARCH_FORM');
    ?>
</legend>
	<?php 
    if ($fields['person_addresses'] != null) {
        $fields['person_addresses'] = null;
<div class="form-container">
    <form class="form-horizontal"  action='<?php 
echo get_url('admin', 'permissions');
?>
' method='post'  style="margin:0px">

        <div class='control-group'> <?php 
shn_form_select(_t('SELECT_ROLE'), 'role', array('options' => $roles));
?>
</div>
        <div class="control-group">
            <div class="controls"><button type="submit"  name="change_role"  class="btn" ><i class="icon-ok"></i> <?php 
echo _t('SELECT');
?>
</button>
            </div></div>

    </form>
</div>
<h2><?php 
echo _t('PERMISSIONS_OF_') . " : <span class='red'>{$role}</span>";
?>
</h2>
<form class="form-horizontal"  action='<?php 
echo get_url('admin', 'permissions');
?>
' method='post'  style="margin:0px">
    <input type="hidden" value="<?php 
echo $role;
?>
" name='role' />
Example #4
0
<h2><?php 
echo _t('SET_SYSTEM_LANGUAGE');
?>
</h2>
<div class="form-container">
    <form class="form-horizontal"  action='<?php 
echo get_url('admin', 'set_locale');
?>
' method='post'>

        <div class='control-group'>
            <?php 
shn_form_select(_t('Select language'), 'locale', array('options' => $locales, 'value' => $current_locale));
?>
        </div>
        <div class="control-group">
            <div class="controls"><button type="submit"  name="update_locale"  class="btn" ><i class="icon-ok"></i> <?php 
echo _t('SELECT');
?>
</button>
            </div></div>

    </form>
</div>
    ?>
</td>
                        <td><?php 
    shn_form_text(null, 'description', array('value' => $_GET['description'], "class" => "input-block-level"));
    ?>
</td>
                        <td><?php 
    shn_form_date(null, 'created_date', array('value' => $_GET['created_date'], "class" => "input-block-level"));
    ?>
</td>
                        <td><?php 
    shn_form_text(null, 'created_by', array('value' => $_GET['created_by'], "class" => "input-block-level"));
    ?>
</td>
                        <td><?php 
    shn_form_select(null, 'query_type', array('options' => $types, 'value' => $_GET['query_type'], "class" => "input-block-level"));
    ?>
</td>
                    </tr>
                    <tr>		
                        <td><input type='checkbox' onchange='$("input.delete").attr("checked",this.checked)' /></td>
                        <td><?php 
    echo _t('QUERY_ID');
    ?>
</td>
                        <td><?php 
    echo _t('NAME');
    ?>
</td>
                        <td><?php 
    echo _t('DESCRIPTION');