Ejemplo n.º 1
0
 public function back($url)
 {
     $buffer = EMPTYSTRING;
     $buffer .= '<a href="' . Router::generateURL($url) . '" class="btn btn-primary btn-sm">';
     $buffer .= '<i class="fa fa-backward"></i>&nbsp;';
     $buffer .= BackendTranslate::getLabel(BACK);
     $buffer .= '</a>';
     return $buffer;
 }
Ejemplo n.º 2
0
 public function back($url)
 {
     $buffer = EMPTYSTRING;
     $buffer .= '<a href="' . Router::generateURL($url) . '" class="btn btn-primary btn-sm">';
     $buffer .= '<span class="glyphicon glyphicon-backward" aria-hidden="true"></span>&nbsp;';
     $buffer .= ButtonsTranslate::getLabel(BACK);
     $buffer .= '</a>';
     return $buffer;
 }
Ejemplo n.º 3
0
 public function visible($url, $online)
 {
     $buffer = EMPTYSTRING;
     if ($online == 1) {
         $buffer .= '<a href="' . Router::generateURL($url) . '" class="btn btn-xs btn-' . SUCCESS . '">';
     } else {
         $buffer .= '<a href="' . Router::generateURL($url) . '" class="btn btn-xs btn-' . DANGER . '">';
     }
     $buffer .= '<span class="glyphicon glyphicon-refresh"></span>&nbsp;';
     if ($online == 1) {
         $buffer .= BackendTranslate::getLabel('show');
     } else {
         $buffer .= BackendTranslate::getLabel('hide');
     }
     $buffer .= '</a>&nbsp;|&nbsp;';
     return $buffer;
 }
Ejemplo n.º 4
0
 function redirect($url, $code = null)
 {
     if ($code == 301) {
         header("HTTP/1.1 301 Moved Permanently");
     }
     header("Location: " . Router::generateURL($url));
 }
Ejemplo n.º 5
0
    <li class="active">
        <?php 
echo BackendTranslate::getLabel(DELETE);
?>
    </li>
</ol>

<div class="alert alert-danger alert-dismissible" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	<?php 
echo BackendTranslate::getLabel('info_delete');
?>
</div>

<form action="<?php 
echo Router::generateURL('cockpit/ranking/delete/' . $id);
?>
" method="post" class="form-horizontal">
	<?php 
echo $this->FormField->hidden('id');
?>
    <?php 
echo $this->FormField->hidden('updated');
?>
    <?php 
echo $this->FormField->hidden('updater');
?>
    <?php 
echo $this->FormField->hidden('online');
?>
	<div class="panel panel-danger">
Ejemplo n.º 6
0
				<td style="width:23%;" class="text-right">
					<?php 
echo $this->FormLink->add('cockpit/coach/add');
?>
				</td>
			</tr>
			</thead>
			<tbody>
			<?php 
foreach ($Coach as $k => $v) {
    ?>
				<?php 
    echo $v->logical_delete == 1 ? '<tr class="danger">' : '<tr>';
    ?>
					<td style="text-align: center;"><a href="<?php 
    echo Router::generateURL('cockpit/coach/online/' . $v->id);
    ?>
" class="label label-<?php 
    echo $v->online == 1 ? SUCCESS : DANGER;
    ?>
"><?php 
    echo $v->online == 1 ? BackendTranslate::getLabel('yes') : BackendTranslate::getLabel('no');
    ?>
</a></td>
					<td><?php 
    echo truncateStringWords($v->coach, 75);
    ?>
</td>
					<td><?php 
    echo $v->team;
    ?>
Ejemplo n.º 7
0
?>
			</li>
		</ol>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<?php 
echo $this->Session->getAlert();
?>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<form action="<?php 
echo Router::generateURL('cockpit/blogtrip/add');
?>
" method="post" class="form-horizontal">
			<?php 
echo $this->FormField->hidden('creation');
echo $this->FormField->hidden('updated');
echo $this->FormField->hidden('updater');
echo $this->FormField->hidden('logical_delete');
?>
		
			<div class="panel panel-info">
				<div class="panel-heading">
					<span class="glyphicon glyphicon-plus"></span> <?php 
echo BackendTranslate::getLabel(ADD);
?>
				</div>
Ejemplo n.º 8
0
 public function image($name)
 {
     $value = isset($this->controller->request->data->{$name}) ? stripslashes($this->controller->request->data->{$name}) : EMPTYSTRING;
     $buffer = EMPTYSTRING;
     $buffer .= $this->init($name);
     if (!empty($value)) {
         $buffer .= '<img src="' . Router::generateURL($value) . '" width="130px"/>';
     } else {
         $buffer .= '<input type="text" value="Aucune image de définie" ' . $this->readonly(true) . ' class="form-control">';
     }
     $buffer .= $this->end($name);
     return $buffer;
 }
Ejemplo n.º 9
0
$title_for_layout = DashboardTranslate::getLabel('help');
?>

<h1 class="page-header">
	<?php 
echo DashboardTranslate::getLabel('help');
?>
</h1>
<ol class="breadcrumb">
	<li>
		<?php 
echo MenuTranslate::getLabel(PLACE);
?>
		<a href="<?php 
echo Router::generateURL(COCKPIT);
?>
"><?php 
echo MenuTranslate::getLabel(HOME);
?>
</a>
	</li>
	<li class="active">
		<?php 
echo DashboardTranslate::getLabel('list');
?>
	</li>
</ol>

<div class="alert alert-primary alert-dismissible" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
Ejemplo n.º 10
0
		<ol class="breadcrumb">
			<li>
				<?php 
echo BackendTranslate::getLabel(PLACE);
?>
				<a href="<?php 
echo Router::generateURL(COCKPIT);
?>
"><?php 
echo BackendTranslate::getLabel(HOME);
?>
</a>
			</li>
			<li>
				<a href="<?php 
echo Router::generateURL('cockpit/bloghealth');
?>
"><?php 
echo BackendTranslate::getLabel('bloghealth');
?>
</a>
			</li>
			<li class="active">
				<?php 
echo BackendTranslate::getLabel(LISTING);
?>
			</li>
		</ol>
	</div>
</div>
<div class="row">
Ejemplo n.º 11
0
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<div class="alert alert-danger alert-dismissible" role="alert">
			<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
			<?php 
echo BackendTranslate::getLabel('info_delete');
?>
		</div>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<form action="<?php 
echo Router::generateURL('cockpit/blogbeauty/delete/' . $id);
?>
" method="post" class="form-horizontal">
			<?php 
echo $this->FormField->hidden('id');
echo $this->FormField->hidden('updated');
echo $this->FormField->hidden('updater');
echo $this->FormField->hidden('online');
?>
			<div class="panel panel-danger">
				<div class="panel-heading">
					<span class="glyphicon glyphicon-remove"></span> <?php 
echo BackendTranslate::getLabel(DELETE);
?>
				</div>
				<div class="panel-body">
Ejemplo n.º 12
0
		<ol class="breadcrumb">
			<li>
				<?php 
echo BackendTranslate::getLabel(PLACE);
?>
				<a href="<?php 
echo Router::generateURL(COCKPIT);
?>
"><?php 
echo BackendTranslate::getLabel(HOME);
?>
</a>
			</li>
			<li>
				<a href="<?php 
echo Router::generateURL('cockpit/blogcat');
?>
"><?php 
echo BackendTranslate::getLabel('blog_category');
?>
</a>
			</li>
			<li class="active">
				<?php 
echo BackendTranslate::getLabel(DELETE);
?>
			</li>
		</ol>
	</div>
</div>
<div class="row">
Ejemplo n.º 13
0
?>
			</li>
		</ol>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<?php 
echo $this->Session->getAlert();
?>
	</div>
</div>
<div class="row">
	<div class="col-lg-12">
		<form action="<?php 
echo Router::generateURL('cockpit/portfoliocat/add');
?>
" method="post" class="form-horizontal">
			<?php 
echo $this->FormField->hidden('creation');
echo $this->FormField->hidden('updated');
echo $this->FormField->hidden('updater');
echo $this->FormField->hidden('logical_delete');
?>
			<div class="panel panel-info">
				<div class="panel-heading">
					<span class="glyphicon glyphicon-plus"></span> <?php 
echo BackendTranslate::getLabel(ADD);
?>
				</div>
				<div class="panel-body">
Ejemplo n.º 14
0
				<td style="width:23%;" class="text-right">
					<?php 
echo $this->FormLink->add('cockpit/urgency/add');
?>
				</td>
			</tr>
			</thead>
			<tbody>
			<?php 
foreach ($Urgency as $k => $v) {
    ?>
				<?php 
    echo $v->logicaldelete == 1 ? '<tr class="danger">' : '<tr>';
    ?>
					<td style="text-align: center;"><a href="<?php 
    echo Router::generateURL('cockpit/urgency/online/' . $v->id);
    ?>
" class="label label-<?php 
    echo $v->online == 1 ? SUCCESS : DANGER;
    ?>
"><?php 
    echo $v->online == 1 ? ButtonsTranslate::getLabel('yes') : ButtonsTranslate::getLabel('no');
    ?>
</a></td>
					<td><?php 
    echo $v->name;
    ?>
</td>
					<td><?php 
    echo $v->phone;
    ?>
Ejemplo n.º 15
0
    <li class="active">
        <?php 
echo UserTranslate::getLabel(DELETE);
?>
    </li>
</ol>

<div class="alert alert-danger alert-dismissible" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	<?php 
echo UserTranslate::getLabel('infodel');
?>
</div>

<form action="<?php 
echo Router::generateURL('cockpit/user/delete/' . $id);
?>
" method="post" class="form-horizontal">
	<?php 
echo $this->FormField->hidden('id');
?>
    <?php 
echo $this->FormField->hidden('updated');
?>
    <?php 
echo $this->FormField->hidden('updater');
?>
	<div class="panel panel-danger">
		<div class="panel-heading">
			<h3 class="panel-title"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span> <?php 
echo UserTranslate::getLabel(DELETE);
Ejemplo n.º 16
0
				<td style="width:23%;" class="text-right">
					<?php 
echo $this->FormLink->add('cockpit/blogcat/add');
?>
				</td>
			</tr>
			</thead>
			<tbody>
			<?php 
foreach ($Blogcat as $k => $v) {
    ?>
				<?php 
    echo $v->logical_delete == 1 ? '<tr class="danger">' : '<tr>';
    ?>
					<td style="text-align: center;"><a href="<?php 
    echo Router::generateURL('cockpit/blogcat/online/' . $v->id);
    ?>
" class="label label-<?php 
    echo $v->online == 1 ? SUCCESS : DANGER;
    ?>
"><?php 
    echo $v->online == 1 ? BackendTranslate::getLabel('yes') : BackendTranslate::getLabel('no');
    ?>
</a></td>
					<td><?php 
    echo $v->category;
    ?>
</td>
					<td class="text-right">
						<?php 
    echo $this->FormLink->consult('cockpit/blogcat/consult/' . $v->id);
Ejemplo n.º 17
0
<div class="row">
	<div class="col-lg-12">
		<h1><?php 
echo FrontendTranslate::getLabel('contact');
?>
</h1>
	</div>
</div>

<div class="row">
	<div class="col-lg-6">
		<form role="form" action="<?php 
echo Router::generateURL('page/contact_form');
?>
" method="post">	
			<div class="form-group">
				<div class="input-group">
					<input type="text" class="form-control" placeholder="Les champs requis se terminent par" required disabled>
					<span class="input-group-addon"><span class="glyphicon glyphicon-check"></span></span>
				</div>
			</div>
			<div class="form-group">
				<label for="InputName"><?php 
echo FrontendTranslate::getLabel('name');
?>
</label>
				<div class="input-group">
					<input type="text" class="form-control" name="InputName" id="InputName" placeholder="<?php 
echo FrontendTranslate::getLabel('name_required');
?>
" required>
Ejemplo n.º 18
0
?>
</a>
	</li>
	<li class="active">
		<?php 
echo EmployeTranslate::getLabel(ADD);
?>
	</li>
</ol>

<?php 
echo $this->Session->getAlert();
?>

<form action="<?php 
echo Router::generateURL('cockpit/employe/add');
?>
" method="post" class="form-horizontal">
	<?php 
echo $this->FormField->hidden('creation');
?>
	<?php 
echo $this->FormField->hidden('updated');
?>
	<?php 
echo $this->FormField->hidden('updater');
?>
	<?php 
echo $this->FormField->hidden('logicaldelete');
?>
Ejemplo n.º 19
0
    }
    ?>
					<?php 
    $i++;
}
?>
					<?php 
$i = 1;
foreach ($rankingDame as $t) {
    ?>
						<?php 
    if ($t->teamname == "US Thy") {
        ?>
							<tr>
								<td><a href="<?php 
        echo Router::generateURL('ranking/listing/2');
        ?>
"><?php 
        echo $t->team;
        ?>
</a></td>
								<td class="text-center"><?php 
        echo $i;
        ?>
</td>
								<td class="text-center"><?php 
        echo $t->point;
        ?>
</td>
								<td class="text-center"><?php 
        echo $t->goal_pos;
Ejemplo n.º 20
0
<ol class="breadcrumb">
	<li>
		<?php 
echo BackendTranslate::getLabel(PLACE);
?>
		<a href="<?php 
echo Router::generateURL(COCKPIT);
?>
"><?php 
echo BackendTranslate::getLabel(HOME);
?>
</a>
	</li>
	<li>
		<a href="<?php 
echo Router::generateURL('cockpit/ranking');
?>
"><?php 
echo $title_for_layout;
?>
</a>
	</li>
	<li class="active">
		<?php 
echo BackendTranslate::getLabel(CONSULT);
?>
	</li>
</ol>

<form action="" method="post" class="form-horizontal">
	<?php 
Ejemplo n.º 21
0
    <li class="active">
        <?php 
echo BackendTranslate::getLabel(DELETE);
?>
    </li>
</ol>

<div class="alert alert-danger alert-dismissible" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	<?php 
echo BackendTranslate::getLabel('info_delete');
?>
</div>

<form action="<?php 
echo Router::generateURL('cockpit/comitte/delete/' . $id);
?>
" method="post" class="form-horizontal">
    <?php 
echo $this->FormField->hidden('id');
?>
    <?php 
echo $this->FormField->hidden('updated');
?>
    <?php 
echo $this->FormField->hidden('updater');
?>
    <?php 
echo $this->FormField->hidden('online');
?>
	<div class="panel panel-danger">
Ejemplo n.º 22
0
" alt="Portfolio-image">
						 </div>
					</div>
					<?php 
    }
    ?>
	
					<div class="col-md-12">
						<div class="news-dsc">
							<?php 
    echo stripcslashes($v->introduction);
    ?>
										 
						</div>
						<a href="<?php 
    echo Router::generateURL('blog/view/id:' . $v->id . '/slug:' . $v->slug);
    ?>
" class="btn btn-custom pull-right"><?php 
    echo FrontendTranslate::getLabel('more');
    ?>
</a>
					</div>
				</div>
				<?php 
}
?>
						
			</div>
		</div>
	</section>				
</div>
Ejemplo n.º 23
0
		<ol class="breadcrumb">
			<li>
				<?php 
echo BackendTranslate::getLabel(PLACE);
?>
				<a href="<?php 
echo Router::generateURL(COCKPIT);
?>
"><?php 
echo BackendTranslate::getLabel(HOME);
?>
</a>
			</li>
			<li>
				<a href="<?php 
echo Router::generateURL('cockpit/portfolio');
?>
"><?php 
echo BackendTranslate::getLabel('portfolio');
?>
</a>
			</li>
			<li class="active">
				<?php 
echo BackendTranslate::getLabel(LISTING);
?>
			</li>
		</ol>
	</div>
</div>
<div class="row">
Ejemplo n.º 24
0
        echo MenuTranslate::getLabel($module);
        ?>
                                    </a>
                                </li>
                            <?php 
    }
    ?>
                        <?php 
}
?>
                        <?php 
foreach ($pagesMenu as $p) {
    ?>
                            <li>
                                <a href="<?php 
    echo Router::generateURL('page/view/id:' . $p->id . '/slug:' . $p->slug);
    ?>
" title="<?php 
    echo $p->name;
    ?>
">
                                    <?php 
    echo $p->name;
    ?>
                                </a>
                            </li>
                        <?php 
}
?>
                    </ul>
                </div>
Ejemplo n.º 25
0
?>
</a>
	</li>
	<li class="active">
		<?php 
echo BackendTranslate::getLabel('change_password');
?>
	</li>
</ol>

<?php 
echo $this->Session->getAlert();
?>

<form action="<?php 
echo Router::generateURL('cockpit/user/changePasswordIn');
?>
" method="post" class="form-horizontal">
	<div class="panel panel-warning">
		<div class="panel-heading">
			<h3 class="panel-title"><i class="fa fa-edit"></i> <?php 
echo BackendTranslate::getLabel('change_password');
?>
</h3>
		</div>
		<div class="panel-body">
			<?php 
echo $this->FormField->password('new_password', false, 'form-control');
?>
			<?php 
echo $this->FormField->password('verify', false, 'form-control');
Ejemplo n.º 26
0
 public function image($name)
 {
     $value = isset($this->controller->request->data->{$name}) ? stripslashes($this->controller->request->data->{$name}) : EMPTYSTRING;
     $buffer = EMPTYSTRING;
     if (!empty($value)) {
         $buffer .= $this->init($name);
         $buffer .= '<a class="img-thumbnail iframe-btn" href="' . Router::generateURL($value) . '">';
         $buffer .= '<img src="' . Router::generateURL($value) . '" width="130px"/>';
         $buffer .= '</a>';
         $buffer .= $this->end();
     }
     return $buffer;
 }
Ejemplo n.º 27
0
				<td style="width:23%;" class="text-right">
					<?php 
echo $this->FormLink->add('cockpit/ranking/add');
?>
				</td>
			</tr>
			</thead>
			<tbody>
			<?php 
foreach ($Ranking as $k => $v) {
    ?>
				<?php 
    echo $v->logical_delete == 1 ? '<tr class="danger">' : '<tr>';
    ?>
					<td style="text-align: center;"><a href="<?php 
    echo Router::generateURL('cockpit/ranking/online/' . $v->id);
    ?>
" class="label label-<?php 
    echo $v->online == 1 ? SUCCESS : DANGER;
    ?>
"><?php 
    echo $v->online == 1 ? BackendTranslate::getLabel('yes') : BackendTranslate::getLabel('no');
    ?>
</a></td>
					<td><?php 
    echo $v->team;
    ?>
</td>
					<td><?php 
    echo truncateStringWords($v->teamname, 75);
    ?>
Ejemplo n.º 28
0
				<td style="width:23%;" class="text-right">
					<?php 
echo $this->FormLink->add('cockpit/slider/add');
?>
				</td>
			</tr>
			</thead>
			<tbody>
			<?php 
foreach ($Slider as $k => $v) {
    ?>
				<?php 
    echo $v->logical_delete == 1 ? '<tr class="danger">' : '<tr>';
    ?>
					<td style="text-align: center;"><a href="<?php 
    echo Router::generateURL('cockpit/slider/online/' . $v->id);
    ?>
" class="label label-<?php 
    echo $v->online == 1 ? SUCCESS : DANGER;
    ?>
"><?php 
    echo $v->online == 1 ? BackendTranslate::getLabel('yes') : BackendTranslate::getLabel('no');
    ?>
</a></td>
					<td><?php 
    echo dateConvert($v->publication);
    ?>
</td>
					<td><?php 
    echo truncateStringWords($v->name, 75);
    ?>
Ejemplo n.º 29
0
?>
</a>
	</li>
	<li class="active">
		<?php 
echo TipTranslate::getLabel(UPDATE);
?>
	</li>
</ol>

<?php 
echo $this->Session->getAlert();
?>

<form action="<?php 
echo Router::generateURL('cockpit/tip/edit/' . $id);
?>
" method="post" class="form-horizontal">
	<?php 
echo $this->FormField->hidden('id');
?>
	<?php 
echo $this->FormField->hidden('updated');
?>
	<?php 
echo $this->FormField->hidden('updater');
?>
	<?php 
echo $this->FormField->hidden('logicaldelete');
?>
	<div class="panel panel-warning">
Ejemplo n.º 30
0
    <li class="active">
        <?php 
echo BackendTranslate::getLabel(DELETE);
?>
    </li>
</ol>

<div class="alert alert-danger alert-dismissible" role="alert">
	<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
	<?php 
echo BackendTranslate::getLabel('info_delete');
?>
</div>

<form action="<?php 
echo Router::generateURL('cockpit/propertycat/delete/' . $id);
?>
" method="post" class="form-horizontal">
    <?php 
echo $this->FormField->hidden('id');
?>
    <?php 
echo $this->FormField->hidden('updated');
?>
    <?php 
echo $this->FormField->hidden('updater');
?>
    <?php 
echo $this->FormField->hidden('online');
?>
	<div class="panel panel-danger">