Exemple #1
0
 /**
  * Funció que guarda un arxiu json de configuració o dades 
  * @name = Nom de l'arxiu dins static o adreça amb el json inclòs
  **/
 public static function saveJsonConfigFile($name, $Data, $convert = true)
 {
     $JSON = "";
     $nom = getcwd() . Url::templatePath() . 'json/' . $name;
     if (file_exists($nom)) {
         if ($convert) {
             $JSON = json_encode($Data, TRUE);
         } else {
             $JSON = $Data;
         }
         file_put_contents($nom, $JSON);
     } else {
         throw new MyException("No he trobat l'arxiu: " . $name);
     }
 }
Exemple #2
0
<?php

use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>

</div>

<!-- JS -->
<?php 
Assets::js(array(Url::templatePath() . 'js/jquery.js', Url::templatePath() . 'js/bootstrap.min.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>

</body>
</html>
?>
 Zeilschool de Waai.<br>
				Alle rechten voorbehouden.<br />
				<a href="developers">Developerteam</a>
			</div>
			<div class="col-md-4">
				<h2>Contact opnemen</h2><hr>
				<p>Zeilschool de Waai<br>Ymedaem 45<br>8722 GR Warns<br>Telefoon: 0514 561290<br>Email: info@zs-waai.nl<br><br>
				Heeft u vragen of opmerkingen? <a href="contact">Klik hier.</a></p>
			</div>
		</div>


</div>





<!-- JS -->
<?php 
Assets::js(array(Url::templatePath() . 'js/jquery.js', 'https://www.google.com/recaptcha/api.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js', Url::templatePath() . 'js/script.js', Url::templatePath() . 'js/cursistkoppelen.js', Url::templatePath() . 'js/validation.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>

</body>
</html>
Exemple #4
0
	<!-- Site meta -->
	<meta charset="utf-8">
	<?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>
	<title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/Core/Config.php
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', Url::templatePath() . 'css/style.css'));
//hook for plugging in css
$hooks->run('css');
?>
</head>
<body>
<?php 
//hook for running code after body tag
$hooks->run('afterBody');
?>

<div class="container">

<div class="page-header">
<h1>Credentials</h1>
</div>
Exemple #5
0
							<label class="remember" for="remember"><input type="checkbox" id="remember" />Remember me</label>

							<div class="button-login">	
								<button type="submit" class="btn btn-primary">Login</button>
							</div>
							<div class="clearfix"></div>
					</form>
					<hr>
					<h3>Forgot Password?</h3>
					<p>
						No problem, <a href="javascript:;">click here</a> to get a new password.
					</p>	
				</div><!--/span-->
			</div><!--/row-->
			

	</div><!--/.fluid-container-->
	
		</div><!--/fluid-row-->
	
	<!-- start: JavaScript-->
<?php 
Assets::js(array(Url::templatePath() . 'js/jquery-1.9.1.min.js', Url::templatePath() . 'js/jquery-migrate-1.0.0.min.js', Url::templatePath() . 'js/jquery-ui-1.10.0.custom.min.js', Url::templatePath() . 'js/jquery.ui.touch-punch.js', Url::templatePath() . 'js/modernizr.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/jquery.cookie.js', Url::templatePath() . 'js/fullcalendar.min.js', Url::templatePath() . 'js/jquery.dataTables.min.js', Url::templatePath() . 'js/excanvas.js', Url::templatePath() . 'js/jquery.flot.js', Url::templatePath() . 'js/jquery.flot.pie.js', Url::templatePath() . 'js/jquery.flot.stack.js', Url::templatePath() . 'js/jquery.flot.resize.min.js', Url::templatePath() . 'js/jquery.chosen.min.js', Url::templatePath() . 'js/jquery.uniform.min.js', Url::templatePath() . 'js/jquery.cleditor.min.js', Url::templatePath() . 'js/jquery.noty.js', Url::templatePath() . 'js/jquery.elfinder.min.js', Url::templatePath() . 'js/jquery.raty.min.js', Url::templatePath() . 'js/jquery.iphone.toggle.js', Url::templatePath() . 'js/jquery.uploadify-3.1.min.js', Url::templatePath() . 'js/jquery.gritter.min.js', Url::templatePath() . 'js/jquery.imagesloaded.js', Url::templatePath() . 'js/jquery.masonry.min.js', Url::templatePath() . 'js/jquery.knob.modified.js', Url::templatePath() . 'js/jquery.sparkline.min.js', Url::templatePath() . 'js/counter.js', Url::templatePath() . 'js/jquery.textareaCounter.plugin.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>
</body>
</html>
	<!-- CSS -->
	<?php 
Assets::css(array(Url::templatePath() . 'css/bootstrap.min.css', Url::templatePath() . 'css/londinium-theme.css', Url::templatePath() . 'css/icons.css', Url::templatePath() . 'css/styles.css', Url::templatePath() . 'css/video-js.css', 'http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&amp;subset=latin,cyrillic-ext'));
//hook for plugging in css
$hooks->run('css');
?>
	<!-- JS -->
	<?php 
Assets::js(array('http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.2/jquery-ui.min.js', Url::templatePath() . 'js/plugins/charts/sparkline.min.js', Url::templatePath() . 'js/plugins/forms/uniform.min.js', Url::templatePath() . 'js/plugins/forms/select2.min.js', Url::templatePath() . 'js/plugins/forms/inputmask.js', Url::templatePath() . 'js/plugins/forms/autosize.js', Url::templatePath() . 'js/plugins/forms/inputlimit.min.js', Url::templatePath() . 'js/plugins/forms/listbox.js', Url::templatePath() . 'js/plugins/forms/multiselect.js', Url::templatePath() . 'js/plugins/forms/validate.min.js', Url::templatePath() . 'js/plugins/forms/tags.min.js', Url::templatePath() . 'js/plugins/forms/switch.min.js', Url::templatePath() . 'js/plugins/forms/uploader/plupload.full.min.js', Url::templatePath() . 'js/plugins/forms/uploader/plupload.queue.min.js', Url::templatePath() . 'js/plugins/forms/wysihtml5/wysihtml5.min.js', Url::templatePath() . 'js/plugins/forms/wysihtml5/toolbar.js', Url::templatePath() . 'js/plugins/interface/daterangepicker.js', Url::templatePath() . 'js/plugins/interface/fancybox.min.js', Url::templatePath() . 'js/plugins/interface/moment.js', Url::templatePath() . 'js/plugins/interface/jgrowl.min.js', Url::templatePath() . 'js/plugins/interface/datatables.min.js', Url::templatePath() . 'js/plugins/interface/colorpicker.js', Url::templatePath() . 'js/plugins/interface/fullcalendar.min.js', Url::templatePath() . 'js/plugins/interface/timepicker.min.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/video.js', Url::templatePath() . 'js/application.js'));
//hook for plugging in javascript
$hooks->run('js');
?>
	<script>
    	videojs.options.flash.swf = "<?php 
echo Url::templatePath() . 'swf/video-js.swf';
?>
";
  	</script>

</head>
<body>
<!-- Login wrapper -->
<div class="login-wrapper">
	<form action="<?php 
echo DIR;
?>
send_forgot" role="form" id="forgot" method="post">
		<div class="popup-header">
			<span class="text-semibold">Resetar senha</span>
		</div>
 public function outbox($current_page = null)
 {
     // Check if user is logged in
     if ($this->auth->isLoggedIn()) {
         // Get Current User's ID
         $u_id = $this->auth->user_info();
     } else {
         Url::redirect();
     }
     // Check to make sure user is trying to delete messages
     if (isset($_POST['submit'])) {
         // Check to make sure the csrf token is good
         if (Csrf::isTokenValid()) {
             // Get Post Data
             $actions = Request::post('actions');
             $msg_id = Request::post('msg_id');
             // Check to see if user is deleteing messages
             if ($actions == "delete") {
                 // Delete selected messages from Outbox
                 if (isset($msg_id)) {
                     foreach ($msg_id as $del_msg_id) {
                         if ($this->model->deleteMessageOutbox($u_id, $del_msg_id)) {
                             // Success
                             $m_del_success[] = true;
                         } else {
                             // Fail
                             $m_del_error[] = true;
                         }
                     }
                     if (count($m_del_success) >= 1) {
                         // Message Delete Success Display
                         SuccessHelper::push('You Have Successfully Deleted Messages', 'MessagesOutbox');
                     } else {
                         if (count($m_del_error) >= 1) {
                             // Message Delete Error Display
                             ErrorHelper::push('Messages Delete Failed', 'MessagesOutbox');
                         }
                     }
                 } else {
                     // Fail
                     ErrorHelper::push('Nothing Was Selected to be Deleted', 'MessagesOutbox');
                 }
             }
         }
     }
     // Collect Data for view
     $data['title'] = "My Private Messages Outbox";
     $data['welcome_message'] = "Welcome to your Private Messages Outbox";
     // Sets "to" username display
     $data['tofrom'] = " to ";
     // Get all message that are to current user
     $data['messages'] = $this->model->getOutbox($u_id, $this->pages->getLimit($current_page, MESSAGE_PAGEINATOR_LIMIT));
     // Set total number of messages for paginator
     $total_num_messages = $this->model->getTotalMessagesOutbox($u_id);
     $this->pages->setTotal($total_num_messages);
     // Send page links to view
     $pageFormat = DIR . "MessagesOutbox/";
     // URL page where pages are
     $data['pageLinks'] = $this->pages->pageLinks($pageFormat, null, $current_page);
     // Message Quota Goods
     // Get total count of messages
     $data['quota_msg_ttl'] = $total_num_messages;
     $data['quota_msg_limit'] = MESSAGE_QUOTA_LIMIT;
     $data['quota_msg_percentage'] = $this->model->getPercentage($data['quota_msg_ttl'], $data['quota_msg_limit']);
     // Check to see if user has reached message limit, if so show warning
     if ($data['quota_msg_percentage'] >= "100") {
         $error[] = "<span class='glyphicon glyphicon-exclamation-sign' aria-hidden='true'></span>\n                  <b>Your Outbox is Full!</b>  You Can NOT send any messages!";
     } else {
         if ($data['quota_msg_percentage'] >= "90") {
             $error[] = "<span class='glyphicon glyphicon-exclamation-sign' aria-hidden='true'></span>\n                  <b>Warning!</b> Your Outbox is Almost Full!";
         }
     }
     // What box are we showing
     $data['what_box'] = "Outbox";
     // Setup Breadcrumbs
     $data['breadcrumbs'] = "\n\t\t\t<li><a href='" . DIR . "'>Home</a></li>\n\t\t\t<li><a href='" . DIR . "Messages'>Private Messages</a></li>\n\t\t\t<li class='active'>" . $data['title'] . "</li>\n\t\t";
     $data['csrf_token'] = Csrf::makeToken();
     // Include Java Script for check all feature
     $data['js'] = "<script src='" . Url::templatePath() . "js/form_check_all.js'></script>";
     // Check for new messages in inbox
     $data['new_messages_inbox'] = $this->model->getUnreadMessages($u_id);
     // Send data to view
     View::renderTemplate('header', $data);
     View::renderModule('Messages/views/messages_sidebar', $data);
     View::renderModule('Messages/views/messages_list', $data, $error, $success);
     View::renderTemplate('footer', $data);
 }
Exemple #8
0
<link href=<?php 
use Helpers\Url;
echo Url::templatePath() . 'css/sweetalert.css';
?>
 rel="stylesheet" type="text/css">

<div class="row">

	<p><b>Afficher les graphiques sur : </b></p>

    <div class="input-field col s10" id="divTypeSelectButton">
        <a class="waves-effect waves-light btn" id="dayButton">La Journée</a>
        <a class="waves-effect waves-light btn" id="monthButton">Le Mois</a>
        <a class="waves-effect waves-light btn" id="yearButton">L'Année</a>
	</div>
	
</div>

<div class="row">

	<div id="settings"></div>

</div>

<div class="row">

	<div class="progress" style="display: none;">
		<div class="indeterminate"></div>
 	</div>
<?php

use Helpers\Url;
?>
</div>

<video autoplay loop muted id="background">
    <source src="<?php 
echo Url::templatePath() . 'video/back-video.mp4';
?>
" type="video/mp4">
</video>

<div id="background-cover">
    <div class="line-back">
        <img class="img-responsive center-block" src="<?php 
echo Url::templatePath() . 'img/reaching-logo.png';
?>
">
    </div>
</div>
Exemple #10
0
<?php

use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>

<?php 
Assets::js(array(Url::templatePath() . 'js/jquery.min.js', Url::templatePath() . 'js/particles.min.js', Url::templatePath() . 'js/bootstrap.min.js', Url::templatePath() . 'js/jquery.bootstrap-autohidingnavbar.min.js', Url::templatePath() . 'js/material.min.js', Url::templatePath() . 'js/ripples.min.js', Url::templatePath() . 'js/app.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>
<br><br><br>
</div> <!-- main container -->
<footer class="footer">
    <div class="row">
        <div class="col-md-10 col-md-offset-1">
            <div class="text-center">
                <div class="text-lg-bn-white sliding-lg-white">Vamos a trabajar juntos.</div>
                <br><br>
                <div class="text-md-white">¿Tienes algún proyecto en mente?</div>
                <br>
                <div class="text-md-white">Empecemos a desarrollarlo.</div>
                <br><br>
                <div class="row">
                    <div class="col-md-4 text-right">
                        <a class="btn btn-raised btn-default" href="<?php 
Exemple #11
0
<?php

use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>
</div>

<!-- JS -->
<?php 
Assets::js(array('//code.jquery.com/jquery-1.11.3.min.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js', '//code.jquery.com/ui/1.11.2/jquery-ui.js', Url::templatePath() . 'js/plugins/metisMenu/jquery.metisMenu.js', Url::templatePath() . 'js/inspinia.js', Url::templatePath() . 'js/plugins/pace/pace.min.js', Url::templatePath() . 'js/plugins/fullcalendar/fullcalendar.min.js', Url::templatePath() . 'js/custom.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>

</body>
</html>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
	<?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>
	<title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/Core/Config.php
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', '//fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic', Url::templatePath() . 'css/style.css', Url::templatePath() . 'css/landing-page.css', Url::templatePath() . 'font-awesome/css/font-awesome.min.css'));
//hook for plugging in css
$hooks->run('css');
?>

    <!--

    <?php 
// Assets::css(array(
//   '/vendor/bootstrap/dist/css/bootstrap.min.css',
//   '/assets/css/fonts.css',
//   '/assets/css/royalslider.css',
//   '/assets/css/style.css',
//   '/assets/css/landing-page.css',
// ));
// //hook for plugging in css
Exemple #13
0
<?php

/**
 * Sample layout
 */
use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>

</div>

<!-- JS -->
<?php 
Assets::js(array_merge(array(Url::templatePath() . 'js/jquery.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js'), isset($data['js']) ? $data['js'] : array()));
if (isset($data['ownjs'])) {
    foreach ($data['ownjs'] as $js) {
        echo $js;
    }
}
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>

</body>
</html>
Exemple #14
0
<?php

use Helpers\Assets;
use Helpers\Url;
?>
<!DOCTYPE html>
<html lang="<?php 
echo LANGUAGE_CODE;
?>
">
<head>

	<!-- Site meta -->
	<meta charset="utf-8">
	<title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/core/config.php
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(['//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', Url::templatePath() . 'css/style.css']);
?>

</head>
<body>

<div class="container">
<?php

/**
 * Created by PhpStorm.
 * User: Phuc
 * Date: 11/09/2015
 * Time: 19:56
 */
use Helpers\Url;
$template_name = 'MetroTemplate';
$template_url = Url::templatePath($template_name);
?>

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="description" content="Metro, a sleek, intuitive, and powerful framework for faster and easier web development for Windows Metro Style.">
    <meta name="keywords" content="HTML, CSS, JS, JavaScript, framework, metro, front-end, frontend, web development">
    <meta name="author" content="Sergey Pimenov and Metro UI CSS contributors">

    <link rel='shortcut icon' type='image/x-icon' href='<?php 
echo $template_url;
?>
favicon.ico' />

    <title>News portal :: Metro UI CSS - The front-end framework for developing projects on the web in Windows Metro Style</title>

    <link href="<?php 
Exemple #16
0
    <!-- Site meta -->
    <meta charset="utf-8">
    <?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>
    <title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/Core/Config.php
?>
</title>

    <!-- CSS -->
    <?php 
Assets::css(array(Url::templatePath() . 'css/bootstrap.min.css', Url::templatePath() . 'css/style.css'));
//hook for plugging in css
$hooks->run('css');
?>

</head>
<body>
<?php 
//hook for running code after body tag
$hooks->run('afterBody');
?>
<nav class="navbar navbar-inverse">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
Exemple #17
0
    <?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>
	<title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/Core/Config.php
?>
</title>
    <meta name="description" content="<?php 
echo $data['meta_description'];
?>
">
	<!-- CSS -->
	<?php 
Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css', '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css', Url::templatePath() . 'css/style.css'));
//hook for plugging in css
$hooks->run('css');
?>
    <link rel="shortcut icon" href="assets/ico/favicon.ico">
    
  </head>

  <body>

    <!-- Fixed navbar -->
    <div class="navbar navbar-default navbar-fixed-top" role="navigation">
      <div class="container-fluid">
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
            <span class="sr-only">Toggle navigation</span>
Exemple #18
0
<main>
  <div class="container">
    <div class="main-block center-block clearfix">
      <h3>Премиум</h3>
      <img class="img-responsive" src="<?php 
echo \Helpers\Url::templatePath() . 'images/money.jpg';
?>
">
      <p>
        На этой странице вы возможно когда-нибудь сможете купить премиум аккаунт и помочь проекту, 
          но на данный момент такого функционала нет.
      </p>
    </div>
Exemple #19
0
	<!-- Site meta -->
	<meta charset="utf-8">
	<?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>
	<title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/Core/Config.php
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(array('https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css', Url::templatePath() . 'css/style.css', Url::templatePath() . 'https://fonts.googleapis.com/css?family=Roboto', Url::templatePath() . 'css/style2.css', Url::templatePath() . 'css/galerie.css'));
//hook for plugging in css
$hooks->run('css');
?>

</head>
<body>
<?php 
//hook for running code after body tag
$hooks->run('afterBody');
?>
<div class="nav navbar-fixed-top">
	<div class="container-fluid">
		<span class="title"><?php 
echo $data['title'];
?>
use Helpers\Url;
use Helpers\Hooks;
//initialise hooks
$hooks = Hooks::get();
?>
		</div><!-- /content-wrapper -->
		<footer class="main-footer">
			<div class="pull-right hidden-xs"><b>Version</b> 0.0.1 </div>
			<strong>Copyright &copy; 2015 <a href="http://uness.com">Picontest</a>.</strong> All rights reserved.
		</footer>
	</div><!-- /wrapper -->

    <!-- REQUIRED JS SCRIPTS -->
<?php 
Assets::js(array(Url::templatePath() . 'backoffice/js/jquery.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js', Url::templatePath() . 'backoffice/js/app.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
if ($data['js-datePlaceholder']) {
    Assets::js(array(Url::templatePath() . 'backoffice/js/jquery.inputmask.js', Url::templatePath() . 'backoffice/js/jquery.inputmask.extensions.js', Url::templatePath() . 'backoffice/js/jquery.inputmask.date.extensions.js', Url::templatePath() . 'backoffice/js/datePlaceholder.js'));
}
?>


<script>

</script>
</body>
</html>
Exemple #21
0
				</li>
				<li>
					<a href="/files">Файлы</a>
				</li>
				<li>
					<a href="/about">Об авторе</a>
				</li>
				<li>
					<a href="/faq">FAQ</a>
				</li>
			</ul>

			<?php 
if (!empty($_SESSION['rf_user'])) {
    require __DIR__ . '/header_logged.php';
} else {
    require __DIR__ . '/header_notlogged.php';
}
?>

		</nav>
		<div class="logo center-block">
			<a href="/">
				<img src="<?php 
echo \Helpers\Url::templatePath() . 'images/logo.png';
?>
" alt="logo">
			</a>
		</div>
		<div class="dialog"></div>
	</header>
<?php

use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
use Models\Page;
//initialise hooks
$hooks = Hooks::get();
?>

    <?php 
Assets::js(array(Url::templatePath() . 'js/modernizr.js'));
?>
<style type="text/css">
      html {
        height: auto;
      }
    </style>

    <!-- Begin page content -->
    <div class="inner-page">
       <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3963.2265782909244!2d3.3807606000000083!3d6.618749900000004!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x103b930795f22b71%3A0xc41bc17a7567a8d8!2s16+Emmanuel+Keshi%2C+Lagos!5e0!3m2!1sen!2sng!4v1435415296793" width="100%" height="350" frameborder="0" style="border:0"></iframe>

    <div class="container ">
      
      <div class="col-md-12">

        <div class="page-header">
          <h3>Contact Us Page</h3>
        </div>
        <form class="evet-form" method="post" accept="" action="">
Exemple #23
0
 public function ChangeEmail()
 {
     // Check to make sure user is logged in
     if (!$this->auth->isLoggedIn()) {
         Url::redirect();
     }
     // Get Current User's userID
     $u_id = $this->auth->user_info();
     $data['email'] = $this->UserData->getUserEmail($u_id);
     // Check to make sure user is trying to login
     if (isset($_POST['submit'])) {
         // Check to make sure the csrf token is good
         if (Csrf::isTokenValid()) {
             // Catch password inputs using the Request helper
             $password = Request::post('passwordemail');
             $newemail = Request::post('newemail');
             // Run the Activation script
             if ($this->auth->changeEmail($u_id, $password, $newemail)) {
                 // Success
                 $success[] = "You Have Successfully Changed Your Email";
             } else {
                 // Fail
                 $error[] = "Email Change Failed";
             }
         }
     } else {
         // No GET information - Send User to index
         //Url::redirect();
     }
     $data['left_sidebar'] = $this->LeftLinks->AccountLinks();
     $data['title'] = 'Change Email';
     $data['csrf_token'] = Csrf::makeToken();
     // Setup Breadcrumbs
     $data['breadcrumbs'] = "\n\t\t\t<li><a href='" . DIR . "'>Home</a></li>\n\t\t\t<li><a href='" . DIR . "AccountSettings'>Account Settings</a></li>\n\t\t\t<li class='active'>" . $data['title'] . "</li>\n\t\t";
     // Add JS Files requried for live checks
     $data['js'] = "<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js'></script>";
     $data['js'] .= "<script src='" . Url::templatePath() . "js/live_email.js'></script>";
     View::rendertemplate('header', $data);
     View::render('auth/ChangeEmail', $data, $error, $success);
     View::rendertemplate('footer', $data);
 }
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">

	<?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>

	<title><?php 
echo SITETITLE . ' | ' . $data['title'];
//SITETITLE defined in config file
?>
</title>

	<!-- CSS -->
	<?php 
Assets::css(array('//maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css', '//maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css', '//code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css', Url::templatePath() . 'backoffice/css/AdminLTE.css', Url::templatePath() . 'backoffice/css/skins/skin-blue.css'));
//hook for plugging in css
$hooks->run('css');
?>

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body class="sidebar-mini skin-blue">
	<div class="wrapper">

	<!-- Main Header -->
Exemple #25
0
                            <div class="form-group">                    
                                <label>Tipus d'usuari</label>
                                <select 
                                    class="form-control" 
                                    ng-model="u.DadesBDD.client.c_Permisos"                                 
                                    ng-change="" 
                                    ng-options = "s.id as s.nom for s in u.options_permisos_usuari"
                                >                                                    
                                </select>
                            </div>
                            
                            <button class="btn btn-primary" ng-click="u.setClient()">Guarda dades</button>
                            <button class="btn btn-warning" ng-click="u.VisibleFormulari = false">Cancel·la</button>
                        </div>
                    </div>
                </div>                                
            </div>

            
    </div> <!-- End Container -->
    <iframe id="my_iframe" style="display:none;"></iframe>
    
    <!-- Scroll to Top -->  

    <script type="text/javascript" src="<?php 
echo Url::templatePath();
?>
js/angular.admin.js?version=30092016"></script>  
    
</body>
</html>
                            <a href="#about">About</a>
                        </li>
                        <li class="footer-menu-divider">&sdot;</li>
                        <li>
                            <a href="#services">Services</a>
                        </li>
                        <li class="footer-menu-divider">&sdot;</li>
                        <li>
                            <a href="#contact">Contact</a>
                        </li>
                    </ul>
                    <p class="copyright text-muted small">Copyright &copy; Your Company 2014. All Rights Reserved</p>
                </div>
            </div>
        </div>
    </footer>



	<?php 
Assets::js(array(Url::templatePath() . 'js/jquery.js', '//maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js'));
//hook for plugging in javascript
$hooks->run('js');
//hook for plugging in code into the footer
$hooks->run('footer');
?>


</body>

</html>
Exemple #27
0
if ($mimeType == 'image/jpg' || $mimeType == 'image/png' || $mimeType == 'image/gif') {
    echo '<img class="img-responsive center-block" src="../uploads/' . \Helpers\Data::html(Controllers\Files::makePreview($data['fileinfo']['server_name'], 719, 540)) . '">';
} elseif ($mimeType == 'image/bmp' || $mimeType == 'image/svg') {
    echo '<img class="img-responsive center-block" src="../uploads/' . \Helpers\Data::html($data['fileinfo']['server_name']) . '">';
} elseif ($mimeType == 'video/webm' || $mimeType == 'video/mp4' || $mimeType == 'video/ogv') {
    echo '<div class="embed-responsive embed-responsive-16by9 video-preview">';
    echo '<video class="embed-responsive-item" controls>';
    echo '<source src="../../uploads/' . \Helpers\Data::html($data['fileinfo']['server_name']) . '">';
    echo '</video>';
    echo '</div>';
} elseif ($mimeType == 'audio/mp3' || $mimeType == 'audio/ogg' || $mimeType == 'audio/wav' || $mimeType == 'audio/aac') {
    echo '<audio class="audio-player" controls>';
    echo '<source src="../../uploads/' . \Helpers\Data::html($data['fileinfo']['server_name']) . '">';
    echo '</audio>';
} else {
    echo '<img class="img-responsive center-block" src="' . \Helpers\Url::templatePath() . '/images/no_preview.jpg">';
}
?>
          <ul class="file-properties">
            <li><i class="fa fa-user"></i><?php 
echo \Helpers\Data::html($data['fileinfo']['user_name']);
?>
</li>
            <li><i class="fa fa-hdd-o"></i><?php 
echo \Helpers\Data::html(\Helpers\Document::formatBytes($data['fileinfo']['file_size'], '1'));
?>
</li>
            <li><i class="fa fa-calendar"></i><?php 
echo \Helpers\Data::html(date('d.m.Y', $data['fileinfo']['upload_date']));
?>
</li>
Exemple #28
0
<?php

use Helpers\Assets;
use Helpers\Url;
use Helpers\Hooks;
$hooks = Hooks::get();
?>

</div>

<?php 
//Array contains JS files required by template, regardless of view.
$jsFileArray = array(Url::templatePath() . 'js/materialize.min.js', Url::templatePath() . 'js/main.js');
if (isset($data['javascript'])) {
    foreach ($data['javascript'] as &$jsFile) {
        array_push($jsFileArray, URL::templatePath() . "js/" . $jsFile . ".js");
    }
}
Assets::js($jsFileArray);
$hooks->run('js');
$hooks->run('footer');
?>

</body>
</html>
Exemple #29
0
        <!-- Site meta -->
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">

        <?php 
//hook for plugging in meta tags
$hooks->run('meta');
?>
        <title><?php 
echo $data['title'] . ' - ' . SITETITLE;
//SITETITLE defined in app/Core/Config.php
?>
</title>

        <!-- CSS -->
        <?php 
Assets::css(array(Url::templatePath() . 'semanticui/semantic.min.css', Url::templatePath() . 'css/style.css'));
//hook for plugging in css
$hooks->run('css');
?>

    </head>
    <body>
        <?php 
//hook for running code after body tag
$hooks->run('afterBody');
?>

     
Exemple #30
0
<main>
  <div class="container">
    <div class="main-block center-block">
      <h3>FAQ</h3>
      <img class="img-responsive" src="<?php 
echo \Helpers\Url::templatePath();
?>
/images/faq.jpg">
      <p class="q"> 
        <b>Q1:</b>
        Как загрузить файл на сайт?
      </p>
      <p class="a"> 
        <b>A1:</b>
        Чтобы загрузить файл на сайт, перейдите на главную страницу, выберите файл для загрузки и нажмите на кнопку "Загрузить".
           После завершения загрузки вы перейдете на страницу, на которой будет содержаться ссылка на ваш файл, которой вы сможете поделиться с другими людьми.
      </p>
      <p class="q">
        <b>Q2:</b>
        Почему ограничение на размер всего 50 мегабайт?
      </p>
      <p class="a">
        <b>A2:</b>
        Такое ограничение стоит потому, что сайт располагается на бесплатном хостинге с очень ограниченным местом под файлы.
           Возможно, в будущем я куплю хостинг и смогу расширить место под файлы, а следовательно и размер загружаемых файлов.
      </p>
      <p class="q">
        <b>Q3:</b>
        Обязательно ли мне регистрироваться?
      </p>
      <p class="a">