Exemple #1
0
        $file_name = UPLOAD_PATH . $send_FILEINFO['fileRandomName'];
        $file_act_name = $send_FILEINFO['fileName'];
        $subject = 'Simple Chat File';
        $body = nl2br($your_comment) . "<br/><br/><br/>Please find the file attached.";
        $send_FileUploadInfo = $send_MF->getChatFileUploadInfo($send_FILEINFO['fileId']);
        $msg = sendMailUsingMailer($emails, $subject, $body, $file_name, $file_act_name);
        if ($msg == 'Letter is sent') {
            $newmsg = "has emailed " . $file_act_name . "</a> to " . $emails . " [ <a href=\"chatfiledownload.php?fc={$send_FILEINFO['fileId']}\">View File</a> ]";
            $success = execute_sqlInsert('tbl_ChatRooms', array('saidBy_username' => $_SESSION["uname"], 'saidBy_empl_id' => $_SESSION["empl_id"], 'message_base64' => '', 'message_plain_mysqlescaped' => $newmsg, 'chatRoom' => $send_FileUploadInfo['roomId'], 'msgType' => 'E'));
        } else {
        }
        register_LastPingAt();
    }
}
if (get_GET_var('fid')) {
    $fid = get_GET_var('fid');
    $MF = new ManageFiles();
    $FILEINFO = $MF->get_file_Info($fid, $_SESSION["empl_id"]);
    if (!count($FILEINFO)) {
        echo "Invalid file or privilege";
        exit;
    }
    $FileUploadInfo = $MF->getChatFileUploadInfo($FILEINFO['fileId']);
}
?>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Send this page to a friend</title>
<link rel="stylesheet" href="send.css" type="text/css">
<!--[if IE]>
<style type="text/css"> 
Exemple #2
0
<?php

include_once "include_db.php";
include_once "include_functions.php";
checkUserSessionandCookie();
$USERNAME = $_SESSION["uname"];
$TASKID = get_GET_var('taskid');
$manageWorks = new manageWorks();
$manageUsers = new manageUsers();
$manageProjects = new manageProjects();
$allPeers = $manageUsers->listOfAllPeerUsers($USERNAME);
$taskDetails = $manageWorks->get_workDetails($TASKID);
$taskDetails['work_briefDesc'] = $taskDetails['work_briefDesc'] ? $taskDetails['work_briefDesc'] : 'No Description';
$usersActiveProjects = $manageUsers->get_usersActiveProjects($USERNAME);
// $allProjects
//  `workID`,
//  `work_userAssigned`,
//  `work_addedBy` ,
//  `work_dateAdded` timestamp ,
//  `work_deadLine` date ,
//  `work_startDate` timestamp,
//  `work_completeDate` timestamp,
//  `work_briefDesc` text,
//  `work_Notes` text,
//  `work_status` '1',
//  `work_priority`  'N',
//  `work_projectName`,
//  `work_isPrivate` 'N',
$workStatus = $taskDetails["work_status"];
switch ($workStatus) {
    case $DE_GLOBALS_WORK_NEW:
Exemple #3
0
	<div style='padding:3px; float:left; margin-left:20px;'>
		<input type='checkbox' id='reschedule_chk_afterTask' onclick=" if( _$('reschedule_chk_afterTask').checked ) { _$('reschedule_daysb4').disabled = true; _$('reschedule_afterTask').disabled = false; _$('reschedule_chk_daysb4').checked = false; }"> Appear in task list  after completion of task <input type='text' id='reschedule_afterTask' size=5 value='' disabled>
	</div>
	<div style='clear:both;'></div>
	<div style='padding:3px; margin-left:auto; margin-right:auto; margin-bottom: 10px;'>
		<span class='bluebuttonSmall' onclick='ManageTasksJsFunction.rescheduleTask();'>Reshcedule</span>
	</div>
</div>


<?php 
include "include_addnewtaskform.php";
$qa_report = new taskReports();
$qa_report->doNotIncludePersonalCondition = true;
$qa_report->showOnlyMyTasks = true;
$qa_report->listQuickEmailTasks();
$ureport = new taskReports();
if (get_GET_var('list') == 'ptasks') {
    $ureport->PersonalTasks = true;
} else {
    $ureport->PersonalTasks = false;
}
$ureport->showOnlyMyTasks = false;
$sortBy = get_GET_var('sortby');
if ($sortBy) {
    $ureport->orderbyfield = $sortBy;
}
$clTasksPeriod = get_GET_var('ctperiod') ? get_GET_var('ctperiod') : 'thismonth';
$ureport->closedTasks($clTasksPeriod);
$ureport->list4sections();
include "include_footer.php";
Exemple #4
0
}; // End of localajaxinit

</SCRIPT>


<?php 
function showHowManyCommentsSelect()
{
    ?>
		<center>
			<div style='margin:10px;'>
				Show 
				<select id="select_comments_howmany" onchange="var hm = this.value; My_JsLibrary.updatePageWithGetVar('howmany', hm);">
					<option value='25'>25 Comments</option>
					<option value='50'>50 Comments</option>
					<option value='100'>100 Comments</option>
					<option value='250'>250 Comments</option>
				</select>
			</div>
		</center>
	<?php 
}
showHowManyCommentsSelect();
$howmany = get_GET_var('howmany');
if (!$howmany) {
    $howmany = 25;
}
$manageUsers = new manageUsers();
$manageUsers->getUnreadComments($username, $howmany);
showHowManyCommentsSelect();
include "include_footer.php";
Exemple #5
0
<?php

include_once "include_db.php";
include_once "include_functions.php";
if (!$_SESSION["uname"]) {
    header('Location: logout.php');
    exit;
}
if (!get_GET_var('fc')) {
    echo "Invalid usage.";
    exit;
}
$fileId = get_GET_var('fc');
$MF = new ManageFiles();
$FILEINFO = $MF->get_file_Info($fileId, $_SESSION["empl_id"]);
if (!count($FILEINFO)) {
    echo "Invalid file or privilege";
    exit;
}
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Content-type: {$FILEINFO['fileType']}");
header("Content-length: {$FILEINFO['fileSize']}");
header("Content-disposition: attachment; filename=\"{$FILEINFO['fileName']}\"");
readfile(UPLOAD_PATH . $FILEINFO['fileRandomName']);
exit;
Exemple #6
0
			callback:function(a){
				if(a){
					$("TR.STT_TR_" + workid).hide();
					My_JsLibrary.showfbmsg( "Task moved back to 'New Tasks' Queue !", 'green');
				}else{
					My_JsLibrary.showErrMsg() ;
				}
			}
		});
	});
	
}; // End of localajaxinit

</SCRIPT>

<div style='display:block !important; height: 20px !important; margin: -18px 0 0 !important;padding: 0 !important; position: fixed !important; top: 45% !important; width: 17px; z-index: 100000 ; right:0; background-color: #ECECEC ;' onclick="My_JsLibrary.windowReload();" TITLE="Reload Page">
	<img src='images/icon_refresh.gif' border=0>
	<span id='span_refreshcountdown'></span>
</div>

<?php 
// List Scheduled Tasks
$ureport = new taskReports();
$ureport->doNotIncludePersonalCondition = true;
$ureport->showOnlyMyTasks = false;
$sortBy = get_GET_var('sortby');
if ($sortBy) {
    $ureport->orderbyfield = $sortBy;
}
$ureport->listWorksScheduled();
include "include_footer.php";
Exemple #7
0
		
	};	
</script>
	

<?php 
$TMP_MU = new ManageUsers();
$ALLUSERS = $TMP_MU->getAllUserIdsInDomain();
if (get_GET_var('id')) {
    $id = get_GET_var('id');
    $to_user_Id = base64_decode($id);
} else {
    echo "Invalid User.";
    exit;
}
$res = get_GET_var('re');
?>
<html><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Direct Message</title>
<meta charset="UTF-8">
<script type="text/javascript" src="js/alljs.php?t=1"></script>
<link rel="stylesheet" href="send.css" type="text/css">
<style>
#content {
margin:28px auto 0;
text-align:center;
width:500px;
}

#f1_upload_process{
Exemple #8
0
<?php

include_once "include_db.php";
if (!$_SESSION["uname"]) {
    header('Location: logout.php');
    exit;
}
$CUSTOM_STYLES = "\n\t.pp_nav{ display:none; }\n\t#div_activeUsers{ width: 15%; }\n\tdiv.usr_actv {\n\t\tmargin-top: 3px;\n\t\tbackground-image: url('images/uac.png');\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: 0px 3px;\n\t\tpadding-left : 14px;\n\t\tcolor : #A1AD86 ;\n\t}\n\tdiv.usr_inactv {\n\t\tmargin-top: 3px;\n\t\tbackground-image: url('images/uinac.png');\n\t\tbackground-repeat: no-repeat;\n\t\tbackground-position: 0px 3px;\n\t\tpadding-left : 14px;\n\t\tcolor : #A1AD86 ;\n\t}\n\t#div_messageLog{\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t\tmargin:2px;\n\t\toverflow: auto;\n\t\twidth: 82%;\n\t\theight: 65%;\n\t\tbackground-color: #FFFFFF;\n\t\tborder: 1px dotted #999;\n\t}\n\t#tbl_messageLog{\n\t\tfont-size: 90%;\n\t\twidth: 98%;\n\t}\n\t#tbl_messageLog TR TD.msgtime{\n\t\tpadding : 2px;\n\t\tmargin: 2px;\n\t\tfont-weight: bold;\n\t\tcolor: #B7B7B7;\n\t}\n\t#tbl_messageLog TR TD.un{\n\t\tfont-weight: bold;\n\t\tfont-size: 110%;\n\t}\n\t#tbl_messageLog TR TD.umsg{\n\t\tpadding: 5px;\n\t\tmargin: 3px;\n\t\t/*background-color: #FFF6A9;*/\n\t\t/*border: 1px solid #D6D6D6;*/\n\t}\n\t#f1_upload_process{\n\t\tz-index:100;\n\t\tvisibility:hidden;\n\t\tposition:absolute;\n\t\ttext-align:center;\n\t\twidth:400px;\n\t}\n\t.bmarkstar{\n\t\tcursor:pointer;\n\t}\n\tTR.cbs td.std{ width: 20px; max-width: 20px;}\n\tTR.cbs td.std img.bmarkstar{ visibility: hidden; }\n\tTR.cbs:hover td.std img.bmarkstar{ visibility: visible; }\n\tTR.cbs td.std img.albk{ visibility: visible; }\n\tTR.cbs td.std img.nalbk{ visibility: hidden; }\n";
include_once "include_functions.php";
include_once "include_header.php";
$rid = get_GET_var('rid');
if (!$rid || !$GMU->has_AccessToRoom($rid)) {
    echo "You do not have access to this chatroom.";
    include_once "include_footer.php";
    exit;
}
$GMU->LogIn_ToRoom($rid);
include_once "include_header_links.php";
?>
<script>
	
	var startUpload = function(){
		document.getElementById('f1_upload_process').style.visibility = 'visible';
		document.getElementById('f1_upload_form').style.visibility = 'hidden';
		return true;
	};

	var stopUpload = function(success){
		var result = '';
		if (success == 1){
		  result = '<span class="msg">The file was uploaded successfully!<\/span><br/><br/>';
Exemple #9
0
<?php

include_once "include_db.php";
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// always modified
header("Cache-Control: no-store, no-cache, must-revalidate");
// HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
// HTTP/1.0
include_once "include_functions.php";
if (!$_SESSION["uname"]) {
    exit;
}
$ACTION = @$_GET["action"];
$USERNAME = $_SESSION["uname"];
switch ($ACTION) {
    case 'getcomments':
        $taskid = get_GET_var("taskid");
        $manageWorks = new manageWorks();
        $manageWorks->get_workComments($taskid, true);
        exit;
        break;
    default:
        break;
}
Exemple #10
0
<?php

include_once "include_db.php";
$CUSTOM_STYLES = "\n\t#pwdTitleRow{\n\tfont-size: 15px;\n\tfont-weight : bold ;\n\tcolor : #718DA1;\n\t}\n\n\tspan.bluebuttonSmall , div.bluebuttonSmall {\n\tbackground-color: #EBE9E9;\n\tborder: 1px outset #B6C7E5;\n\tcolor: #445A80;\n\tline-height: 1.4em;\n\tpadding: 2px 4px;\n\tcursor: pointer;\n\tfont-size: 85%;\n\t}\n";
include_once "include_functions.php";
include_once "include_header.php";
//include_once "include_header_links.php";
if (get_GET_var('id')) {
    $id = get_GET_var('id');
    $key = get_GET_var('key');
    $invi_Id = $id;
    $sql = "SELECT * FROM tbl_Invitations WHERE invi_Id='{$invi_Id}' AND invi_key='{$key}'";
    $invi_details = executesql_returnAssocArray($sql);
    $invi_sent_by = $invi_details['invi_sent_by'];
    $userFName = executesql_returnArray("select emplFullName from tblAppUsers where emplUsername='******'");
    if ($invi_details['invi_status'] != '0') {
        echo "Invalid Invitation. May be the invitation already used.";
        exit;
    }
} else {
    echo "Invalid Invitation. May be the invitation already used.";
    exit;
}
?>
<script>
	
	var localajaxinit = function(){
		
	};

	var checkInvitation = function(){