Esempio n. 1
0
<div class="help">
	<?php 
load_partial("menu");
?>
        <?php 
load_partial("realms_submenu");
?>
</div>
<div id="realm">
	<p class="splash">
		Last modification timestamp is: <?php 
echo $realm["ts"];
?>
	</p>
	<form action="" method="post" onsubmit="this.updaterealm.disabled=true;">
		<input type="hidden" name="action" value="updaterealm" />
		<label for="country">Federation’s two letter country code</label>
		    <input type="text" name="country" value="<?php 
echo $realm["country"];
?>
" />
		<label for="stype">Service type:</label>
			<select name="stype">
				<option value="0" <?php 
if ($realm["stype"] == 0) {
    echo 'selected=\\"selected\\"';
}
?>
>FLRS</option>
				<option value="1" <?php 
if ($realm["stype"] == 1) {
Esempio n. 2
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("mon_realm_logs_submenu");
?>
</div>
<div id="monrealm">
	<form action="" method="post" onsubmit="this.addmonrealmlog.disabled=true;">
		<input type="hidden" name="action" value="addmonrealmlog" />
		<label for="mon_realmid">ID of Monitored Realm</label>
			<?php 
echo select_tag($rids, 'mon_realmid');
?>
		<label for="mon_type">Type of Tests to Be Preformed</label>
			<?php 
$tests = array('0' => 'PAP', '1' => 'EAP-TTLS', '10' => 'PAP & EAP-TTLS');
echo select_tag($tests, 'mon_type');
?>
		<label for="status">Federation Status:</label>
			<?php 
$statuses = array('0' => 'Ok (default)', '-1' => 'Reject logic test failed', '-2' => 'Accept logic test failed', '-3' => 'Both tests failed');
echo select_tag($statuses, 'status');
?>
		<label for="a_resp_time">Response time for accept test</label>
			<input type="text" name="a_resp_time" />
		<label for="r_resp_time">Response time for reject test</label>
			<input type="text" name="r_resp_time" />
		<label for="mon_serid">ID of TLRS used for test</label>
			<?php 
Esempio n. 3
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("mon_logs_submenu");
?>
</div>
<div id="monlogs">
    <ol>
    <?php 
if (!empty($m)) {
    foreach ($m as $monl) {
        echo "<li><span class=\"delete\">";
        echo getLink("X", "mon_logs/delete/" . $monl->id);
        echo "</span>";
        echo " | ";
        echo "<strong>";
        echo getLink($monl->ts_scheduled, "mon_logs/edit/" . $monl->id);
        echo "</strong></li>";
    }
}
?>
    </ol>
</div>
Esempio n. 4
0
File: add.php Progetto: stas/bebuntu
<?php

load_partial("admin_menu");
?>
<div class="help">
	<ul>
		<li><?php 
echo getLink("Show countries", "countries/all");
?>
</li>
	</ul>
</div>
<form id="newcountry" action="" method="post">
	<input name="action" value="newcountry" type="hidden"/>
	<label for="name">New country name:</label>
	<input type="text" name="name" />
	<p style="clearall">
		<input type="submit" name="create" value="Add" />
	</p>
</form>
Esempio n. 5
0
} else {
    if (partial_exists('content_left') or partial_exists('content_right')) {
        $class = "col-sm-9 col-md-9";
    } else {
        $class = "col-md-12";
    }
}
?>

			<div class="<?php 
echo $class;
?>
 top-spacing">
				<div class="row">
					<?php 
echo load_partial('locations_filter', $locations_filter);
?>

					<div class="location-list col-sm-9">
						<?php 
if ($locations) {
    ?>
							<?php 
    foreach ($locations as $location) {
        ?>
								<div class="panel panel-local">
									<div class="panel-body">
										<div class="row">
											<div class="box-one col-xs-12 col-sm-5">
												<?php 
        if (!empty($location['location_image'])) {
Esempio n. 6
0
			<div class="<?php 
echo $class;
?>
">
                <div id="general" class="tab-pane row wrap-all active">

                    <?php 
echo get_partial('content_left', 'wrap-none col-sm-3');
?>

                    <div class="<?php 
echo $menu_class;
?>
">
                        <?php 
echo load_partial('menu_list', $menu_list);
?>
                    </div>
                </div>
			</div>
			<?php 
echo get_partial('content_right', 'col-sm-3');
?>
			<?php 
echo get_partial('content_bottom');
?>
		</div>
	</div>
</div>
<script type="text/javascript"><!--
$(document).ready(function() {
Esempio n. 7
0
File: all.php Progetto: stas/bebuntu
echo getLink("Add administrators", "admin/add");
?>
</li>
	</ul>
</div>
<div class="admins">
    <?php 
if (!empty($all_admins)) {
    ?>
    <ul>
        <?php 
    foreach ($all_admins as $admin) {
        ?>
            <li>
                <?php 
        load_partial('admin');
        ?>
            </li>
        <?php 
    }
    ?>
    </ul>
    <?php 
} else {
    ?>
        <?php 
    echo "<p>No administrators were added</p>";
    ?>
    <?php 
}
?>
Esempio n. 8
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("realm_datas_submenu");
?>
</div>
<div id="realm">
	<form action="" method="post" onsubmit="this.updaterealm.disabled=true;">
		<input type="hidden" name="action" value="addrealmdata" />
		<label for="realmid">ID of Representative Realm</label>
		<?php 
echo select_tag($rids, 'realmid');
?>
		<label for="number_inst">Number of institutions eligible to participate</label>
			<input type="text" name="number_inst" />
		<label for="number_user">Number of users eligible to participate</label>
			<input type="text" name="number_user" />
		<label for="number_id">Number of e-identities eligible to authentificate</label>
			<input type="text" name="number_id" />
		<label for="number_IdP">Number of institutions as IdP</label>
			<input type="text" name="number_IdP" />
		<label for="number_SP">Number of institutions as SP</label>
			<input type="text" name="number_SP" />
		<label for="number_SPIdP">Number of institutions as IdP and SP</label>
			<input type="text" name="number_SPIdP" />
		<p>
			<input type="submit" name="addrealmdata" value="Add">
		</p>
    </form>
Esempio n. 9
0
File: all.php Progetto: stas/bebuntu
?>
</li>
	</ul>
</div>

<div class="teams">
    <?php 
if (!empty($all_teams)) {
    ?>
    <ul>
        <?php 
    foreach ($all_teams as $teams) {
        ?>
            <li>
                <?php 
        load_partial('teams');
        ?>
            </li>
        <?php 
    }
    ?>
    </ul>
    <?php 
} else {
    ?>
        <?php 
    echo "<p>No teams were added</p>";
    ?>
    <?php 
}
?>
Esempio n. 10
0
<div class="help">
    <?php 
load_partial("menu");
?>
</div>
<div class="help">
    <?php 
echo getLink("Register", "users/register");
?>
 or <?php 
echo getLink("Login", "users/login");
?>
</div>
<div id="recover">
    <form action="" method="post" onsubmit="this.recover.disabled=true;">
        <input type="hidden" name="action" value="recover">
        <label for="username">Email:</label>
            <input type="text" name="email">
        <p>
            <input type="submit" name="recover" value="Recover">
        </p>
    </form>
</div>
Esempio n. 11
0
 /**
  * @hook timber/twig/filters
  * @param $twig
  * @return mixed
  */
 function hw_timber_twig_filters($twig)
 {
     $twig->addExtension(new MyTagExtension());
     //load partial template
     $partial = new Twig_SimpleFunction('partial', function () {
         $args = func_get_args();
         $alias = current(array_splice($args, 0, 1));
         load_partial($alias, $args);
     });
     $twig->addFunction($partial);
     //other filters
     $filter = new Twig_SimpleFilter('apply_function', array($this, 'apply_function_twig_filter'), array('needs_environment' => true, 'needs_context' => true));
     $twig->addFilter($filter);
     $twig->addFilter(new Twig_SimpleFilter('esc_attr', 'esc_attr'));
     $twig->addFilter(new Twig_SimpleFilter('esc_url', 'esc_url'));
     $twig->addFilter(new Twig_SimpleFilter('esc_html', 'esc_html'));
     $twig->addFilter(new Twig_SimpleFilter('esc_html__', 'esc_html__'));
     $twig->addFilter(new Twig_SimpleFilter('esc_textarea', 'esc_textarea'));
     $twig->addFilter(new Twig_SimpleFilter('esc_attr_e', 'esc_attr_e'));
     $twig->addFilter(new Twig_SimpleFilter('esc_url_raw', 'esc_url_raw'));
     $twig->addFilter(new Twig_SimpleFilter('sanitize_title', 'sanitize_title'));
     $twig->addFilter(new Twig_SimpleFilter('wptexturize', 'wptexturize'));
     $twig->addFilter(new Twig_SimpleFilter('checked', 'checked'));
     $twig->addFilter(new Twig_SimpleFilter('wp_nonce_field', 'wp_nonce_field'));
     $twig->addFilter(new Twig_SimpleFilter('wp_kses_post', 'wp_kses_post'));
     $twig->addFilter(new Twig_SimpleFilter('_treat', '_treat'));
     //date time
     $twig->addFilter(new Twig_SimpleFilter('date_i18n', 'date_i18n'));
     $twig->addFilter(new Twig_SimpleFilter('strtotime', 'strtotime'));
     //php
     $twig->addFunction(new Twig_SimpleFunction('_call', 'call_user_func'));
     $twig->addFunction(new Twig_SimpleFunction('_call_array', 'call_user_func_array'));
     //function
     $twig->addFunction(new Twig_SimpleFunction('_partial', array($this, 'load_partial_template')));
     return $twig;
 }
Esempio n. 12
0
File: all.php Progetto: stas/bebuntu
echo getLink("Add countries", "countries/add");
?>
</li>
	</ul>
</div>
<div class="countries">
    <?php 
if (!empty($all_countries)) {
    ?>
    <ul>
        <?php 
    foreach ($all_countries as $country) {
        ?>
            <li>
                <?php 
        load_partial('country');
        ?>
            </li>
        <?php 
    }
    ?>
    </ul>
    <?php 
} else {
    ?>
        <?php 
    echo "<p>No countries were added</p>";
    ?>
    <?php 
}
?>
Esempio n. 13
0
File: add.php Progetto: stas/bebuntu
</li>
	</ul>
</div>
<form id="newteam" action="" method="post">
	<input name="action" value="newteam" type="hidden"/>
	<label for="name">Team name:</label>
            <input type="text" name="name" />
	<label for="description">Team Description:</label>
            <textarea name="description" ></textarea>
	<label for="email">Team email:</label>
            <input type="text" name="email" />
	<label for="homepage">Team homepage:</label>
            <input type="text" name="homepage" />
	<label for="mailinglist">Team mailing list:</label>
            <input type="text" name="mailinglist" />
	<label for="irc">Team irc server and channel:</label>
            <input type="text" name="irc" />
	<label for="location">Team location:</label>
            <input type="text" name="irc" />
	<label for="country_id">Team country:</label>
            <select name="country_id" >
                <?php 
load_partial('select_countries');
?>
            </select>
	<label for="submiter">Submiter (your) email or launchpad link:</label>
            <input type="text" name="submiter" />
	<p style="clearall">
		<input type="submit" name="create" value="Add" />
	</p>
</form>
Esempio n. 14
0
	<!-- /HEADER -->
	
	<!-- MAIN CONTENT -->
	<div id="main">
		
		<!-- PAGE CONTENT -->
		<div id="page">
			<?php 
load_page();
?>
		</div>
		<!-- /PAGE CONTENT -->

		<!-- FOOTER -->
		<?php 
load_partial('footer');
?>
		<!-- /FOOTER -->
		</div>
		
	</div>
	<!-- /MAIN CONTENT -->
	
	<!-- GOOGLE ANALYTICS -->
	<script type="text/javascript">
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	</script>
	<script type="text/javascript">
	try {
	var pageTracker = _gat._getTracker("UA-11185752-1");
Esempio n. 15
0
<div class="help">
	<?php 
load_partial("menu");
?>
        <?php 
load_partial("institutions_submenu");
?>
</div>
<div id="institution">
    <ol id="allinstitutions">
    <?php 
foreach ($ins as $in) {
    echo "<li><span class=\"delete\">";
    echo getLink("X", "institutions/delete/" . $in->id);
    echo "</span>";
    echo " | ";
    echo "<h4>";
    echo getLink($in->org_name, "institutions/edit/" . $in->id);
    echo "</h4></li>";
}
?>
    </ol>
</div>
Esempio n. 16
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("mon_creds_submenu");
?>
</div>
<div id="moncreds">
    <ol>
    <?php 
if (!empty($m)) {
    foreach ($m as $monc) {
        foreach ($realms as $realm) {
            if ($realm->data['id'] == $monc->mon_realmid) {
                $realm_name = $realm->data['tested_realm'];
            }
        }
        echo "<li><span class=\"delete\">";
        echo getLink("X", "mon_creds/delete/" . $monc->id);
        echo "</span>";
        echo " | ";
        echo "<strong>";
        echo getLink($realm_name, "mon_creds/edit/" . $monc->id);
        echo "</strong></li>";
    }
}
?>
    </ol>
</div>
Esempio n. 17
0
                    <?php 
}
?>

                    <div id="local-information" class="tab-pane row wrap-all">
                        <?php 
echo load_partial('local_info', $local_info);
?>
                    </div>

                    <?php 
if (!empty($local_gallery)) {
    ?>
                        <div id="local-gallery" class="tab-pane row wrap-all">
                            <?php 
    echo load_partial('local_gallery', $local_gallery);
    ?>
                        </div>
                    <?php 
}
?>
                </div>
            </div>
            <?php 
echo get_partial('content_right', 'col-sm-3');
?>
            <?php 
echo get_partial('content_bottom');
?>
        </div>
    </div>
Esempio n. 18
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("mon_sers_submenu");
?>
</div>
<div id="monsers">
    <ol>
    <?php 
if (!empty($m)) {
    foreach ($m as $mons) {
        foreach ($realms as $realm) {
            if ($realm->data['id'] == $mons->mon_realmid) {
                $realm_name = $realm->data['org_name'];
            }
        }
        echo "<li><span class=\"delete\">";
        echo getLink("X", "mon_sers/delete/" . $mons->id);
        echo "</span>";
        echo " | ";
        echo "<strong>";
        echo getLink($realm_name . " &rarr; " . $mons->name, "mon_sers/edit/" . $mons->id);
        echo "</strong></li>";
    }
}
?>
    </ol>
</div>
Esempio n. 19
0
File: all.php Progetto: stas/bebuntu
?>
</li>
	</ul>
</div>

<div class="questions">
    <?php 
if (!empty($all_questions)) {
    ?>
    <ul>
        <?php 
    foreach ($all_questions as $question) {
        ?>
            <li>
                <?php 
        load_partial('question');
        ?>
            </li>
        <?php 
    }
    ?>
    </ul>
    <?php 
} else {
    ?>
        <?php 
    echo "<p>No questions were added</p>";
    ?>
    <?php 
}
?>
Esempio n. 20
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("mon_realms_submenu");
?>
</div>
<div id="monrealm">
	<form action="" method="post" onsubmit="this.addmonrealm.disabled=true;">
		<input type="hidden" name="action" value="addmonrealm" />
		<label for="tested_realm">Realm Used for Testing <small>(usually eduroam)</small></label>
			<input type="text" name="tested_realm" />
		<label for="tested_country">Country Code Used for Testing</label>
			<input type="text" name="tested_country" />
		<label for="realmid">ID of Monitored Realm</label>
		    <select name="realmid" >
                        <?php 
foreach ($rids as $i => $rid) {
    echo "<option value=\"{$i}\" >{$rid}</option>";
}
?>
                    </select>
		<label for="mon_type_sel">Type of Tests to Be Preformed</label>
		    <select name="mon_type_sel" >
                        <?php 
$tests = array('0' => 'PAP', '1' => 'EAP-TTLS', '10' => 'PAP & EAP-TTLS');
foreach ($tests as $i => $tid) {
    echo "<option value=\"{$i}\" >{$tid}</option>";
}
?>
Esempio n. 21
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("institution_usages_submenu");
?>
</div>
<div id="realmusage">
	<form action="" method="post" onsubmit="this.addinstusage.disabled=true;">
		<input type="hidden" name="action" value="addinstusage" />
		<label for="institutionid">ID of Representative Realm</label>
		<?php 
echo select_tag($insts, 'institutionid');
?>
		<label for="local_sn">Number of Successfully Authenticated Sessions per Day (Local Level)</label>
			<input type="text" name="local_sn" />
		<label for="national_sn">Number of Successfully Authenticated Sessions per Day (National Level)</label>
			<input type="text" name="national_sn" />
		<label for="international_sn">Number of Successfully Authenticated Sessions per Day (International Level)</label>
			<input type="text" name="international_sn" />
		<p>
			<input type="submit" name="addinstusage" value="Add">
		</p>
    </form>
</div>
Esempio n. 22
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("service_locs_submenu");
?>
</div>
<div id="service">
	<p class="splash">
		Last modification timestamp is: <?php 
echo $service['ts'];
?>
	</p>
	<form action="" method="post" onsubmit="this.updateinst.disabled=true;">
		<input type="hidden" name="action" value="addservice" />
		<label for="institutionid">Institution it belongs</label>
		<?php 
echo select_tag($ins, 'institutionid', $service['institutionid']);
?>
		<label for="longitude">Longitude</label>
			<input type="text" name="longitude" value="<?php 
echo $service['longitude'];
?>
" />
		<label for="latitude">Latitude</label>
			<input type="text" name="latitude" value="<?php 
echo $service['latitude'];
?>
" />
		<label for="loc_name">Location Name</label>
Esempio n. 23
0
<div class="help">
	<?php 
load_partial("menu");
?>
	<?php 
load_partial("realm_usages_submenu");
?>
</div>
<div id="realms">
    <ol id="allrealms">
    <?php 
if (!empty($rus)) {
    foreach ($rus as $realmd) {
        foreach ($realms as $realm) {
            if ($realm->data['id'] == $realmd->realmid) {
                $realm_name = $realm->data['org_name'];
            }
        }
        echo "<li><span class=\"delete\">";
        echo getLink("X", "realm_usages/delete/" . $realmd->id);
        echo "</span>";
        echo " | ";
        echo "<strong>";
        echo getLink($realm_name, "realm_usages/edit/" . $realmd->id);
        echo "</strong></li>";
    }
}
?>
    </ol>
</div>
Esempio n. 24
0
                                <h4><?php 
echo sprintf(lang('text_review_heading'), $location_name);
?>
</h4>
                                <span class="under-heading"></span>
                            </div>
                        </div>

                        <?php 
echo load_partial('local_reviews', $local_reviews);
?>
                    </div>

                    <div id="local-information" class="tab-pane row wrap-all">
                        <?php 
echo load_partial('local_info', $local_info);
?>
                    </div>
                </div>
            </div>
            <?php 
echo get_partial('content_right', 'col-sm-3');
?>
            <?php 
echo get_partial('content_bottom');
?>
        </div>
    </div>
</div>
<script type="text/javascript"><!--
    $(document).ready(function() {