示例#1
0
    ?>
</th>
	          <th class="content-left"><?php 
    echo _("Date de l'inscription");
    ?>
</th>
	          <th><?php 
    echo _('Payé');
    ?>
</th>
	        </tr>
	      </thead>
	      <tbody>
	        <?php 
    foreach ($event['registrations'] as $registration) {
        echo '<tr><td>' . $registration['firstname'] . ' ' . $registration['lastname'] . '</td><td>' . datetime_to_string($registration['registration']) . '</td><td class="content-right"> ' . money_format('%!n&euro;', $registration['paid']) . '</td></tr>';
    }
    ?>
        </tbody>
	    </table>
	  </div><!--/.control-group -->
	<?php 
}
?>
</div>
<?php 
$content = ob_get_clean();
?>

<?php 
include 'layout.php';
示例#2
0
    ?>
</th>
	          <th class="content-left"><?php 
    echo _('Date de fin');
    ?>
</th>
	          <th class="content-left"><?php 
    echo _('Actions');
    ?>
</th>
	        </tr>
	      </thead>
	      <tbody>
	        <?php 
    foreach ($reader['permissions'] as $permission) {
        echo '<tr><td>' . $permission['uid'] . '</td><td>' . datetime_to_string($permission['end']) . '</td>';
        echo '<td><a href="permission?uid=' . $permission['uid'] . '&id=' . $reader['id'] . '"><button class="ink-button"><i class="icon-pencil"></i></button></a> <a href="permission/delete?uid=' . $permission['uid'] . '&id=' . $reader['id'] . '"><button class="ink-button red"><i class="icon-trash"></i></button></a></td></tr>';
    }
    ?>
        </tbody>
	    </table>
	  </div><!--/.control-group -->
	<?php 
}
?>
	<div class="top-space">
	  <a href="reader/delete?id=<?php 
echo $reader['id'];
?>
"><button class="ink-button red"><i class="icon-remove"></i> <?php 
echo _("Supprimer le lecteur");
示例#3
0
	      <tbody>
	        <?php 
foreach ($swipes as $swipe) {
    ?>
	          <tr<?php 
    if ($swipe['status'] == 0) {
        echo ' class="ink-label error"';
    } elseif ($swipe['status'] == 2) {
        echo ' class="ink-label warning"';
    } elseif ($swipe['status'] == 3) {
        echo ' class="ink-label info"';
    }
    ?>
>
	            <td class="small"><?php 
    echo datetime_to_string($swipe['timestamp']);
    ?>
</td>
				      <td><span class="tooltip" data-tip-text="<?php 
    echo $swipe['location'];
    ?>
" data-tip-where="up" data-tip-color="black"><?php 
    echo $swipe['reader'];
    ?>
</span></td>
				      <td><?php 
    echo $swipe['uid'];
    ?>
</td>
				      <td><?php 
    echo get_service_icon_html($swipe['service']);
示例#4
0
      <h4 style="font-weight:normal;"><span id="money_user_today" class="ink-badge grey"><i class="icon-spin icon-spinner"></i> <i class="icon-euro"></i></span> <?php 
echo _("dépensés aujourd'hui");
?>
</h4>
      <h4 style="font-weight:normal;"><span id="money_user_month" class="ink-badge grey"><i class="icon-spin icon-spinner"></i> <i class="icon-euro"></i></span> <?php 
echo _("dépensés ce mois");
?>
</h4>
      <?php 
if ($client['lastorder']) {
    echo '<p>' . _("La dernière commande a été passée") . ' ' . strtolower(datetime_to_string($client['lastorder'])) . '</p>';
}
?>
      <?php 
if ($client['lastpayment']) {
    echo '<p>' . money_format('%!n&euro;', $client['lastpayment']['amount']) . ' ' . _("ont été crédités") . ' ' . strtolower(datetime_to_string($client['lastpayment']['timestamp'])) . '</p>';
}
?>
      <h4><?php 
echo _("Préférences");
?>
</h4>
      <p><?php 
echo _("Survolez le graphique pour plus d'informations.");
?>
</p>
    </div><!--/.modal-body -->
		<div class="modal-footer">
		  <button class="ink-button caution ink-dismiss"><i class="icon-chevron-left"></i> <?php 
echo _("Revenir à la commande");
?>
示例#5
0
function get_last_message()
{
    $link = open_database_connection();
    $query = "SELECT * FROM messages ORDER BY timestamp DESC LIMIT 1";
    if ($result = mysqli_query($link, $query)) {
        // fetch associative array
        $message = mysqli_fetch_assoc($result);
        $user = get_user_by_uid($message['uid']);
        $message['firstname'] = $user['firstname'];
        $message['lastname'] = $user['lastname'];
        $message['published'] = datetime_to_string($message['timestamp']);
        unset($message['timestamp']);
        unset($message['id']);
        // free result set
        mysqli_free_result($result);
    }
    // close connection
    mysqli_close($link);
    return $message;
}
示例#6
0
echo _('Nom');
?>
</th>
          <th class="content-left"><?php 
echo _('Montant');
?>
</th>
	    	</tr>
	    </thead>
			<tbody>
			  <?php 
foreach ($payments as $payment) {
    ?>
			    <tr>
			      <td class ="small"><?php 
    echo datetime_to_string($payment['timestamp']);
    ?>
</td>
			      <td><?php 
    echo $payment['uid'];
    ?>
</td>
						<td class="hide-small hide-medium"><?php 
    echo $payment['firstname'];
    ?>
</td>
						<td class="hide-small hide-medium"><?php 
    echo $payment['lastname'];
    ?>
</td>
						<td><?php 
示例#7
0
?>
</h2>
			<table class="ink-table">
				<tbody>
					<?php 
$i = 0;
foreach ($messages as $message) {
    ?>
						<tr>
							<td>
								<strong><?php 
    echo $message['message'];
    ?>
</strong>
								<div class="small"><i class="icon-calendar"></i> <?php 
    echo datetime_to_string($message['timestamp']);
    ?>
 <i class="icon-user"></i> <?php 
    echo $message['firstname'];
    ?>
 </div>
							</td>
						</tr>
						<?php 
    $i++;
    if ($i > 1) {
        break;
    }
    ?>
					<?php 
}
示例#8
0
echo _('Inscrits');
?>
</th>
          <th class="content-left"><?php 
echo _('Actions');
?>
</th>
	    	</tr>
	    </thead>
			<tbody>
			  <?php 
foreach ($events as $event) {
    ?>
			    <tr>
			      <td><?php 
    echo datetime_to_string($event['date']);
    ?>
</td>
			      <td><?php 
    echo $event['title'];
    ?>
</td>
			      <td class="hide-small hide-medium"><?php 
    echo substr($event['description'], 0, 32) . "...";
    ?>
</td>
						<td><?php 
    if (count($event['registrations']) < intval($event['max'])) {
        echo '<span class="ink-label success invert">' . count($event['registrations']) . '/' . $event['max'] . '</span>';
    } else {
        echo '<span class="ink-label error invert">' . count($event['registrations']) . '/' . $event['max'] . '</span>';
示例#9
0
echo _('Produit');
?>
</th>
          <th class="content-left"><?php 
echo _('Quantité');
?>
</th>
	    	</tr>
	    </thead>
			<tbody>
			  <?php 
foreach ($orders as $order) {
    ?>
			    <tr>
			      <td class ="small"><?php 
    echo datetime_to_string($order['timestamp']);
    ?>
</td>
			      <td><?php 
    echo $order['uid'];
    ?>
</td>
			      <td><span class="tooltip" data-tip-text="<?php 
    echo $order['reader'];
    ?>
" data-tip-where="up" data-tip-color="black"><?php 
    if ($order['reader'] == 0) {
        echo _('Interface web');
    } else {
        echo $order['location'];
    }
示例#10
0
echo _('Prix');
?>
</th>
					<th class="content-left"><?php 
echo _('Actions');
?>
</th>
				</tr>
			</thead>
			<tbody>
				<?php 
foreach ($jobs as $job) {
    ?>
					<tr>
						<td class ="small"><?php 
    echo datetime_to_string($job['timestamp']);
    ?>
</td>
						<td><?php 
    echo $job['uid'];
    ?>
</td>
						<td><a href="/models/<?php 
    echo $job['file'];
    ?>
"><?php 
    echo $job['file'];
    ?>
</td>
						<td class="hide-small hide-medium"><?php 
    echo $job['duration'];