コード例 #1
0
<?php

session_start();
/*error_reporting(E_ALL);
ini_set("display_errors", 1);*/
$siteurl = $_SERVER['DOCUMENT_ROOT'] . "/nf";
include $siteurl . "/controller/faxController.php";
include $siteurl . "/model/commonFunctions.php";
include $siteurl . "/model/PDFMerger.php";
$pdf1 = new PDFMerger();
$cfObj = new commonFunctions();
$faxObjCon = new faxController();
$faxObj = new faxModel();
// Database Connection
$mC = new MongoClient();
$db = $mC->nf;
if ($_POST['submit_reply'] == "reply") {
    require_once 'tcpdf/tcpdf.php';
    // create new PDF document
    $pdf = new TCPDF(PDF_PAGE_ORIENTATION, PDF_UNIT, PDF_PAGE_FORMAT, true, 'UTF-8', false);
    // set document information
    // $pdf->SetCreator(PDF_CREATOR);
    // $pdf->SetAuthor('Nicola Asuni');
    // $pdf->SetTitle('TCPDF Example 001');
    // $pdf->SetSubject('TCPDF Tutorial');
    // $pdf->SetKeywords('TCPDF, PDF, example, test, guide');
    // set default header data
    // $pdf->SetHeaderData('../../../assets/img/gallery/Image01.jpg', PDF_HEADER_LOGO_WIDTH, PDF_HEADER_TITLE.' 001', "Sample", array(0,64,255), array(0,64,128));
    $pdf->setFooterData(array(0, 64, 0), array(0, 64, 128));
    // set header and footer fonts
    // $pdf->setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN));
コード例 #2
0
ファイル: inbox.php プロジェクト: SunilNair786/ProjectNF
<?php

include_once 'includes/header.php';
?>
<!-- main header end -->
<!-- main sidebar -->
<?php 
include_once 'includes/sidemenu.php';
?>
<!-- main sidebar end -->
<?php 
$faxObjCon = new faxController();
if (isset($_REQUEST['submit'])) {
    $toIds = $_POST['mail_new_to'];
    if (isset($toIds)) {
        if (strpos($toIds, ',')) {
            $finalUserIds = array();
            $findMe = $toIds[strlen(trim($toIds)) - 1];
            if ($findMe == ',') {
                $userIds = substr(trim($toIds), 0, -1);
            } else {
                $userIds = $toIds;
            }
            $arrToUserIds = explode(",", $userIds);
            if (is_array($arrToUserIds)) {
                foreach ($arrToUserIds as $key => $val) {
                    if (is_numeric($val)) {
                        $finalUserIds[] = $val;
                    }
                }
            } else {
コード例 #3
0
<?php

include_once 'includes/header.php';
?>
<!-- main header end -->
<!-- main sidebar -->
<?php 
include_once 'includes/sidemenu.php';
?>
<!-- main sidebar end -->

<?php 
$faxObjCon = new faxController();
if (isset($_REQUEST['submit'])) {
    $faxId = $faxObjCon->copyFiles($_POST, $_FILES);
    if (isset($_POST['hidd_values'])) {
        $arrToUserIds = explode(",", $_POST['hidd_values']);
        for ($i = 0; $i < count($arrToUserIds); $i++) {
            $faxObjCon->insertToFaxIds($arrToUserIds[$i], $faxId);
        }
    } else {
        $arrToId = $_POST['hidd_values'];
        $faxObjCon->insertToFaxIds($arrToId, $faxId);
    }
    header("location:inbox.php");
}
if ($_GET['action'] == "delete" && $_GET['faxsId'] != "") {
    $faxObjCon->deleteFax($_GET['faxsId']);
    header("location:inbox.php");
}
?>
コード例 #4
0
<?php

error_reporting(1);
ob_start();
session_start();
include "model/commonFunctions.php";
include "controller/userController.php";
include "controller/faxController.php";
$userContObj = new userController();
$faxObjCon = new faxController();
// if(isset($_REQUEST['keyword']) && !empty(isset($_REQUEST['keyword'])) ){
// 	$autoVals = $userContObj->searchContact($_REQUEST['keyword']);
// 	print_r($autoVals);
// }
if (isset($_GET['tagId']) && $_GET['tag_sec'] == "TagsDelete") {
    $userContObj->deleteTag($_GET['tagId'], $_SESSION['user_id']);
}
// update favorites
if (isset($_GET['fax_id']) && isset($_GET['fav_val']) && $_GET['fav_val'] != "") {
    $faxObjCon->updateFavorites($_GET['fax_id'], $_GET['fav_val']);
}
// update fax read count
if (isset($_GET['fax_id'])) {
    $faxObjCon->updateReadCount($_GET['fax_id']);
}
// updating seen or Unseen
if (isset($_GET['Sfax_id']) && $_GET['section'] == "seen") {
    $faxObjCon->updatefaxSeenStatus($_GET['Sfax_id']);
}
if (isset($_GET['email']) && $_GET['email'] != '') {
    $verify = $userContObj->checkEmail($_GET['email']);