Example #1
0
<?php

$out[] = '<div class="widgetBox">';
$out[] = '<div class="innerPadding">';
$mq = q("select * from mail_queue where sent_time is null and try_sent = " . $config['mail_options']['how_many_trys'] . " order by sent_time desc limit 50");
$total_mq = c("select id from mail_queue where sent_time is null and try_sent = " . $config['mail_options']['how_many_trys']);
$out[] = '<h2>Mails Bounced: ' . $total_mq . '</h2>';
if ($mq) {
    $out[] = '<p><a class="blue" href="mails/reQueueAll.php?type=bounced">reQueue all mails bounced</a></p>';
}
if ($mq) {
    foreach ($mq as $m) {
        $data = unserialize($m['headers']);
        $out[] = '<div class="widgetRow" style="background: #FFE0E0;">';
        $email_name = dato($m['id_user'], 'mail_queue_emails', 'email_name');
        if ($email_name) {
            $out[] = '<p><strong>Email Name: </strong><a class="linkGray" href="?m=emails&amp;action=edit&amp;id=' . $m['id_user'] . '"><strong>' . $email_name . '</strong></a></p>';
        }
        $out[] = '<p><strong>Subject: </strong>' . $data['Subject'] . '</p>';
        $out[] = '<p><strong>From: </strong>' . htmlentities($data['From']) . '</p>';
        $out[] = '<p><strong>To: </strong>' . htmlentities($data['To']) . '</p>';
        $out[] = '<p><strong>create_time</strong>: ' . date($config['dateFormat'] . ' ' . $config['timeFormat'], strtotime($m['create_time'])) . '</p>';
        $trys = $m['try_sent'] > 1 ? 'trys' : 'try';
        $out[] = '<p style="color: red;"><strong>Tagged as bounced after ' . $m['try_sent'] . ' ' . $trys . '</strong></p>';
        $out[] = '<p><a href="?m=mail-queue&amp;action=edit&amp;id=' . $m['id'] . '">See entire queued object</a></p>';
        $out[] = '<p><a href="mails/removeFromQueue.php?id=' . $m['id'] . '">Remove from Queue</a></p>';
        $out[] = '<p><a href="mails/reQueue.php?id=' . $m['id'] . '&amp;type=bounced">reQueue mail bounced</a></p>';
        $out[] = '</div>';
    }
}
$out[] = '</div>';
Example #2
0
 private function getCategorieName()
 {
     if ($this->categories['array']) {
         $res = arr_search($this->categories['array'], $this->categories['campo'] . '=="' . $this->catId . '"');
         return $res[0][$this->categories['campos']];
     } else {
         return dato($this->catId, $this->categories['table'], $this->categories['campos']);
     }
 }
 public function getFormInput()
 {
     if ($this->item_id) {
         if (!$this->showOnEdit) {
             return false;
         }
     } else {
         if (!$this->showOnCreate) {
             return false;
         }
     }
     // APPLY Value to AfterFieldHtml
     if ($this->useValueAsAfterFieldHtml) {
         $this->afterFieldHtml = '<div style="margin-top: 3px;">' . replaceWidthHeight(278, 160, $this->value) . '</div>';
     }
     // SET FIELDLABEL = NAME IF NO FIELDLABEL
     if (!$this->fieldLabel) {
         $this->fieldLabel = $this->name;
     }
     // SET ID = NAME IF NO ID
     if (!$this->id) {
         $this->id = $this->name;
     }
     // SET NAME = ID IF NO NAME
     if (!$this->name) {
         $this->name = $this->id;
     }
     // DISABLED
     if ($this->disabled) {
         $this->disabled = ' disabled="disabled" ';
     } else {
         $this->disabled = '';
     }
     // convert Value Function, propiedad declarada en el config. es el nombre de la funcion a invocar.
     if ($this->value) {
         if ($this->convertValueFunction) {
             // CUSTO FUNCTION
             if ($this->convertValueFunction != 'dato') {
                 $evalString = $this->convertValueFunction . '(' . $this->value . ');';
                 $this->value = eval('return ' . $evalString);
             } else {
                 $this->value = dato($this->value, $this->convertValueFunctionDataTable, $this->convertValueFunctionDataField);
             }
         }
     }
     switch ($this->dataType) {
         case "integer":
             $this->value = (int) $this->value;
             break;
         case "number":
             $this->value = (int) $this->value;
             break;
         case "string":
             $this->value = (string) $this->value;
             break;
     }
     switch ($this->inputType) {
         case "input":
             return $this->input();
             break;
         case "tags":
             return $this->tags();
             break;
         case "password":
             return $this->input();
             break;
         case "select":
             return $this->select();
             break;
         case "textarea":
             return $this->textarea();
             break;
         case "datepicker":
             return $this->datepicker();
             break;
         case "timepicker":
             return $this->timepicker();
             break;
         case "hidden":
             return $this->hidden();
             break;
         case "file":
             return $this->file();
             break;
         case "submit":
             return $this->submit();
             break;
         case "displayfield":
             return $this->displayfield();
             break;
     }
 }
Example #4
0
            	<td><?php 
    echo $idioma['CodigoSeguimientoSistema'];
    ?>
</td>
                <td><textarea class="span12" name="CodigoSeguimientoSistema" rows="10"><?php 
    echo dato("CodigoSeguimientoSistema");
    ?>
</textarea></td>
            </tr>
            <tr>
            	<td><?php 
    echo $idioma['CodigoAdicionalSistemaLogin'];
    ?>
</td>
                <td><textarea class="span12" name="CodigoAdicionalSistemaLogin" rows="10"><?php 
    echo dato("CodigoAdicionalSistemaLogin");
    ?>
</textarea></td>
            </tr>
        	<tr>
            	<td class="centrar" colspan="2"><input type="submit" class="btn btn-success" value="<?php 
    echo $idioma['Guardar'];
    ?>
"></td>
            </tr>
        </table>
	</div>
    <?php 
}
?>
</div>
Example #5
0
<?php

session_start();
include "functions.php";
opendb();
$username = checkSession();
$today = dato();
// Stopur til at vise beregningstiden
$start = (double) array_sum(explode(' ', microtime()));
?>

<!DOCTYPE HTML>
<html>
	<head>
		<meta charset=utf-8>
		<title>
			Timer
		</title>
		<link rel="stylesheet" href="style.css" type="text/css" />
	</head>

	<body>
<?php 
include "topbar.php";
// Se Check-in status. Hvis checked ind er status 1, ellers er den 0.
$sql = mysql_query("SELECT status FROM users WHERE username = '******'");
$result = mysql_fetch_assoc($sql);
$status = $result['status'];
// Check for om det er første besøg og startsaldo derfor ikke er angivet.
$sql = mysql_query("SELECT * FROM users WHERE username = '******' AND firstVisit='1'");
$firstVisit = mysql_num_rows($sql);
Example #6
0
<?php

echo "<div id='topbar'>";
echo "Uge " . uge() . " - " . dag() . " " . dato() . " " . tid() . " - " . $username . " &#8226; ";
echo "<a href='mailto:CKM@Bang-Olufsen.dk?subject=Feedback til Timer'><img src='images/feedback.png' /></a> &#8226; ";
echo "<a href='overview.php'>Overblik</a> &#8226; ";
echo "<a href='add.php'>Tilf&oslash;j</a> &#8226; ";
echo "<a href='settings.php'>Indstillinger</a> &#8226; ";
echo "<a href='logout.php'>Log ud</a>";
echo "</div>";