예제 #1
0
 function form()
 {
     if ($this->request->data) {
         $this->loadModel('Contact');
         $mail = new PHPMailer();
         $mail->From = $this->request->data->mail;
         $mail->FromName = $this->request->data->name;
         $message = $this->request->data->content;
         if ($this->request->data->sendcopy == 1) {
             $mail->AddAddress($this->request->data->mail);
             $message .= "<div><div dir=\"ltr\"><div><span style=\"color:rgb(11,83,148)\">Bien à vous,<i><b><br></b></i></span></div><div><span style=\"color:rgb(11,83,148)\"><i><b><br>WebPassions</b><br></i></span></div><div><span style=\"color:rgb(11,83,148)\">Lorge Vivian<br></span></div><div><span style=\"color:rgb(11,83,148)\"><i>0479/95.98.45</i><br></span></div><span style=\"color:rgb(11,83,148)\"><a target=\"_blank\" href=\"http://www.webpassions.be\"><i>http://www.webpassions.be</i></a></span><br><div><br><div><img width=\"96\" height=\"28\" src=\"http://www.webpassions.be/signature.png\"><br><br><br></div></div></div></div>";
         }
         $mail->IsHTML(true);
         $mail->CharSet = 'UTF-8';
         $mail->AddAddress($_SESSION['cmscontact']);
         $mail->AddReplyTo($_SESSION['cmscontact']);
         $mail->Subject = $_SESSION['cmscontactcategory'][$this->request->data->subject];
         $mail->Body = $message;
         if (!$mail->Send()) {
             $this->logger->LogError($this->request->controller, $this->request->action, $_SESSION[USER]->login, ErrorsTranslate::getLabel('sendError') . $mail->ErrorInfo);
             $this->Session->setAlert(ErrorsTranslate::getLabel('sendError') . $mail->ErrorInfo, DANGER);
         } else {
             $this->logger->LogInfo($this->request->controller, $this->request->action, $_SESSION[USER]->login, DashboardTranslate::getLabel('sendContact'));
             $this->Session->setAlert(DashboardTranslate::getLabel('sendContact'), SUCCESS);
         }
         unset($mail);
     }
 }
예제 #2
0
?>
</div>

<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title"><span class="glyphicon glyphicon-list" aria-hidden="true"></span> <?php 
echo UserTranslate::getLabel('list');
?>
</h3>
	</div>
	<div class="panel-body">
		<table class="table table-hover table-bordered" id="helpData">
			<thead>
			<tr>
				<th><?php 
echo DashboardTranslate::getLabel('document');
?>
</th>
				<th style="width:15%;"></th>
			</tr>
			</thead>
			<tbody>

			<?php 
if ($folders = opendir('../webroot/media/restricted/documents/aide')) {
    while (false !== ($folder = readdir($folders))) {
        if ($folder != '.' && $folder != '..' && $folder != 'config.php') {
            ?>
						<tr>
							<td><?php 
            echo $folder;
예제 #3
0
            echo DashboardTranslate::getLabel('jul');
            break;
        case "8":
            echo DashboardTranslate::getLabel('aug');
            break;
        case "9":
            echo DashboardTranslate::getLabel('sep');
            break;
        case "10":
            echo DashboardTranslate::getLabel('oct');
            break;
        case "11":
            echo DashboardTranslate::getLabel('nov');
            break;
        case "12":
            echo DashboardTranslate::getLabel('dec');
            break;
    }
    ?>
</td>
                    <td><?php 
    echo $record->getNewvisits();
    ?>
</td>
                    <td><?php 
    echo $record->getVisits();
    ?>
</td>
                    <td><?php 
    echo $record->getPageviews();
    ?>
예제 #4
0
</p>
	</div>

</div>

<div class="row">

	<div class="col-md-12">
		<h4><?php 
echo DashboardTranslate::getLabel('infos');
?>
</h4>
		<p><?php 
echo DashboardTranslate::getLabel('yesno');
?>
</p>
		<div class="alert alert-info"><?php 
echo DashboardTranslate::getLabel(INFO);
?>
</div>
		<div class="alert alert-success"><?php 
echo DashboardTranslate::getLabel(SUCCESS);
?>
</div>
		<div class="alert alert-danger"><?php 
echo DashboardTranslate::getLabel(ERROR);
?>
</div>
	</div>

</div>
예제 #5
0
파일: form.php 프로젝트: WebPassions/2015
<form action="<?php 
echo Router::generateURL('cockpit/contact/form');
?>
" method="post" class="form-horizontal">
	<?php 
echo $this->FormField->hidden('creation');
?>
	<?php 
echo $this->FormField->hidden('updater');
?>

	<div class="panel panel-info">
		<div class="panel-heading">
			<h3 class="panel-title"><span class="glyphicon glyphicon-envelope" aria-hidden="true"></span> <?php 
echo DashboardTranslate::getLabel('formContact');
?>
</h3>
		</div>
		<div class="panel-body">
			<?php 
echo $this->FormField->text('name', false, 'form-control');
?>
			<?php 
echo $this->FormField->email('mail', false, 'form-control');
?>
			<?php 
echo $this->FormField->select('subject', $_SESSION['cmscontactcategory']);
?>
			<?php 
echo $this->FormField->textArea('content', false);
예제 #6
0
"><?php 
echo MenuTranslate::getLabel(HOME);
?>
</a>
	</li>
	<li class="active">
		<?php 
echo DashboardTranslate::getLabel('logging');
?>
	</li>
</ol>

<div class="panel panel-primary">
	<div class="panel-heading">
		<h3 class="panel-title"><span class="glyphicon glyphicon-list" aria-hidden="true"></span> <?php 
echo DashboardTranslate::getLabel('logging');
?>
</h3>
	</div>
	<div class="panel-body">
		<pre><?php 
echo file_get_contents($log);
?>
</pre>
	</div>
	<div class="panel-footer text-right">
		<?php 
echo $this->FormLink->back(COCKPIT);
?>
	</div>
</div>