Example #1
0
function payGetInstalledPaymentModules()
{
    $moduleFiles = GetFilesInDirectory("core/modules/payment", "php");
    $payment_modules = array();
    foreach ($moduleFiles as $fileName) {
        $className = GetClassName($fileName);
        if (!$className) {
            continue;
        }
        eval("\$payment_module = new " . $className . "();");
        if ($payment_module->is_installed()) {
            $payment_modules[] = $payment_module;
        }
    }
    return $payment_modules;
}
Example #2
0
function shGetInstalledShippingModules()
{
    $moduleFiles = GetFilesInDirectory("core/modules/shipping", "php");
    $shipping_modules = array();
    foreach ($moduleFiles as $fileName) {
        $className = GetClassName($fileName);
        if (!$className) {
            continue;
        }
        eval("\$shipping_module = new " . $className . "();");
        if ($shipping_module->is_installed()) {
            $shipping_modules[] = $shipping_module;
        }
    }
    return $shipping_modules;
}
Example #3
0
    border-radius: 4px;
	width: 768px;
}
 
</style>
</head>
<body>
<div class="container">
	<div class=row> 
		<div class="col-md-12">
			<img src="assets/coll_header.jpg" class="center-block">
		</div>
	<div class=row> 	
		<div class="col-md-12 text-center">
			<h3><?php 
echo GetClassName($Class);
?>
</h3>
			<h2><?php 
echo date('l F d, Y h:i');
?>
</h2>
		</div>
	</div>
	<form action="form.php" method=post>
	<div class=row> 	
		<div class="col-md-12">
			<div class="bs-docs-example center-block">
			<div id="chosing_subjects">
			<div id="alert" class="alert alert-danger alert-dismissible text-center " role="alert"> <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button><b>Please note that the feedback form for each subject can be filled and submitted only once.</b></div>
			<table class="table table-bordered" style="width: auto;">
Example #4
0
File: home.php Project: usb19/FFS
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database");
mysql_select_db($mysql_database, $bd) or die("Could not select database");
$qry = "SELECT * FROM `table_data` LIMIT 29,999999999999";
$res = mysql_query($qry);
if (!mysql_query($qry, $bd)) {
    die("An unexpected error occured while querying, Please try again!");
}
// to load current feedback session class
$qry = "SELECT * FROM `table_data` WHERE ID='Startup'";
$result = mysql_query($qry);
if (!mysql_query($qry, $bd)) {
    die("An unexpected error occured while retriving current feedback session class, Please try again!");
}
$Startup = mysql_fetch_assoc($result);
if ($Startup['Data1'] == 1) {
    $fbClass = GetClassName($Startup['Data2']);
    $fbSessionStat = "\n<form action=\"setFBSessionClass.php\" method=\"post\">\n<input name=\"classID\" type=\"Hidden\" value=\"EndSession\">\n<button type=\"submit\" class=\"btn btn-success center-block\">\n<b>\nFeedback Session of {$fbClass} is in Progress, Click this button to End. \n<i class='icon-spin icon-refresh icon-large'>\n</i>\n\n</b>\n</button>\n</form>\n";
} else {
    $fbSessionStat = "\n<h3 class=\"text-center\">\n<span class=\"label label-danger\">\nNo Feedback Session is running. Click a class to start a Session.\n</span>\n</h3>\n";
}
$qry = "SELECT * FROM `table_faculty_info` WHERE dep in('CS','ME','EC','CV','BS')";
$facListRes = mysql_query($qry);
while ($facListArray = mysql_fetch_array($facListRes)) {
    if ($facListArray['dep'] == "BS") {
        $bsFacListOptions .= "\n<option value=" . $facListArray['empcode'] . ">\n" . $facListArray['name'] . "\n</option>\n";
    } else {
        if ($facListArray['dep'] == "CS") {
            $csFacListOptions .= "\n<option value=" . $facListArray['empcode'] . ">\n" . $facListArray['name'] . "\n</option>\n";
        } else {
            if ($facListArray['dep'] == "EC") {
                $ecFacListOptions .= "\n<option value=" . $facListArray['empcode'] . ">\n" . $facListArray['name'] . "\n</option>\n";
Example #5
0
		<?IF($VA_setup['reglist_error_cnt']){?><TD class="b bg_light" nowrap><?Print $text_error_cnt; PrintOrderBy("error_cnt");?></TD><?}?>
		<?IF($VA_setup['reglist_error_ip']){?><TD class="b bg_light" nowrap><?Print $text_error_ip; PrintOrderBy("error_ip");?></TD><?}?>
		<?IF($VA_setup['reglist_enabled']){?><TD class="b bg_light" nowrap><?Print $text_enabled; PrintOrderBy("enabled");?></TD><?}?>
		<?IF($VA_setup['reglist_email']){?><TD class="b bg_light" nowrap><?Print $text_email; PrintOrderBy("email");?></TD><?}?>
		<?IF($VA_setup['reglist_note_op'] && USR_CLASS >= 3){?><TD class="b bg_light" nowrap><?Print $text_note_op; PrintOrderBy("note_op");?></TD><?}?>
		<?IF($VA_setup['reglist_note_usr']){?><TD class="b bg_light" nowrap><?Print $text_note_usr; PrintOrderBy("note_usr");?></TD><?}?>
		<?IF($VA_setup['reglist_note_usr']){?><TD class="b bg_light" nowrap><?Print $text_show_keys; PrintOrderBy("show_keys");?></TD><?}?>
	</TR>
<?
IF($total > 0) {
	$result = $DB_hub->Query($query);
	WHILE($row = $result->Fetch_Assoc())
		{
		$image = Get_Usr_Img($row['nick'], $row['class'], $row['enabled']);
		
		$info  = $text_class." : ".GetClassName($row['class'])." (".$row['class'].")<BR>";
		IF($row['enabled'])
			{$info .= $text_enabled." : ".$text_yes."<BR>";}
		ELSE
			{$info .= $text_enabled." : ".$text_no."<BR>";}
		$info .= $text_nick." : ".$row['nick']."<BR>";
		$info .= $text_class_protect." : ".$row['class_protect']."<BR>";
		$info .= $text_class_hidekick." : ".$row['class_hidekick']."<BR>";
		IF($row['hide_kick'])
			{$info .= $text_hide_kick." : ".$text_yes."<BR>";}
		ELSE
			{$info .= $text_hide_kick." : ".$text_no."<BR>";}
		$info .= $text_reg_date." : ".Date($VA_setup['timedate_format'], $row['reg_date'])."<BR>";
		$info .= $text_reg_op." : ".$row['reg_op']."<BR>";
		IF($row['pwd_change'])
			{$info .= $text_pwd_change." : ".$text_yes."<BR>";}
Example #6
0
session_start();
date_default_timezone_set('Asia/Kolkata');
$Timestamp = date('d-m-Y h:i:s A');
//Main Logic Starts here
if ($_SESSION['LoginStatus'] == 0 || $_SESSION['LoginStatus'] == NULL) {
    header("location: index.php");
    exit;
}
if (!($_REQUEST['facID'] || $_REQUEST['classID'])) {
    header("location: ../error.php");
    exit;
}
$FacID = strtolower($_POST['facID']);
$FacName = GetFacName($_POST['facID']);
$Class = $_POST['classID'];
$ClassName = GetClassName($Class);
//******************************************************************Generation of PDF Starts Here*******************************************************
//******************************************************************************************************************************************************
$BUILDInfo = GetBUILD();
//set the name of the file generated;
$Filename = $FacName . "-" . $ClassName . " (Feedback Report).pdf";
//$Filename=rawurlencode($Filename);
//check for the feedbacks in the database if none found return back
$bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database");
mysql_select_db($mysql_database, $bd) or die("Could not select database");
$qry = "SELECT * FROM {$FacID} WHERE Class='" . $Class . "'";
$result = mysql_query($qry);
$num = mysql_num_rows($result);
if ($num == 0) {
    //echo "No reports";
    header("location: home.php?select=reportsTab&reports=no");
Example #7
0
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with VerliAdmin; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/
?>

<TABLE class="b1 fs9px">
	<TR>
		<TD class="bg_light" nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_nick."</FONT> : ".$user['nick'];?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_pwd_crypt."</FONT> : "; IF($user['pwd_crypt'] == 1){Print $text_crypted;}ELSEIF($user['pwd_crypt'] == 2){Print $text_md5_hash;}ELSE{Print $text_noncrypted;}?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_pwd_set."</FONT> : "; IF($user['login_pwd']){Print $text_yes;}ELSE{Print $text_no;}?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_class."</FONT> : ".GetClassName($user['class'])." (".$user['class'].")";?>&nbsp;&nbsp;</TD>
	</TR><TR>
		<TD class="bg_light" colspan=2 nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_login_last."</FONT> : ".Date($VA_setup['timedate_format'], $user['login_last']);?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" colspan=2 nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_login_ip."</FONT> : ".$user['login_ip'];?>&nbsp;&nbsp;</TD>
	</TR><TR>
		<TD class="bg_light" colspan=2 nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_error_last."</FONT> : ".Date($VA_setup['timedate_format'], $user['error_last']);?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" colspan=2 nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_error_ip."</FONT> : ".$user['error_ip'];?>&nbsp;&nbsp;</TD>
	</TR><TR>
		<TD class="bg_light" colspan=2 nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_reg_date."</FONT> : ".Date($VA_setup['timedate_format'], $user['reg_date']);?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" colspan=2 nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_reg_op."</FONT> : ".$user['reg_op'];?>&nbsp;&nbsp;</TD>
	</TR><TR>
		<TD class="bg_light" nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_login_cnt."</FONT> : ".$user['login_cnt'];?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_error_cnt."</FONT> : ".$user['error_cnt'];?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" nowrap>&nbsp;&nbsp;<?Print "<FONT class=\"b\">".$text_class_protect."</FONT> : ".$user['class_protect'];?>&nbsp;&nbsp;</TD>
		<TD class="bg_light" nowrap>&nbsp;</TD>
	</TR><TR>
Example #8
0
File: form.php Project: usb19/FFS
			<table class="" border="0" width="735">
			<tr>
				<td align=right width=100><big><span class="label label-primary">Faculty Name:</span></big></td><td width=400>&nbsp;<b><?php 
echo $FacName;
?>
</b></td><td align=left><big><span class="label label-primary">Date:</span></big> <b><?php 
echo $date;
?>
</td>
			</tr>
			<tr>
				<td align=right><big><span class="label label-primary">Subject:</span></big></td><td>&nbsp;<b><?php 
echo $Subject;
?>
</b></td><td align=left><big><span class="label label-primary">Class:</span></big> <b><?php 
echo GetClassName($_SESSION['Class']);
?>
</b></td>
			</tr>
			<tr><td colspan=3><hr color=black></td></tr>
			<tr><td colspan=3><b>Grading Marks:</b></td></tr>
			</table>
			<table width="735" border="1">
			<tr align=center><td>Strongly Agree</td><td>Agree</td><td>Neither Agree or Disagree</td><td>Disagree</td><td>Strongly Disagree</td></tr>
			<tr align=center><td>5</td><td>4</td><td>3</td><td>2</td><td>1</td></tr>
			</table>
		</div>
	</div>
	</div>
	<div class="row"> 
		<div class="col-md-6 col-md-offset-2">
Example #9
0
     if (isset($_POST['save'])) {
         Redirect(set_query('Pustishka='));
     }
     $smarty->assign("settings", $settings);
     $smarty->assign("controls", $controls);
     $smarty->assign("shipping_module", $shipping_module);
     $smarty->assign("constant_managment", 1);
 } else {
     $shipping_configs = modGetAllInstalledModuleObjs(SHIPPING_RATE_MODULE);
     foreach ($shipping_configs as $_Ind => $_Conf) {
         $shipping_configs[$_Ind] = array('ConfigID' => $_Conf->get_id(), 'ConfigName' => $_Conf->title, 'ConfigClassName' => get_class($_Conf));
     }
     $shipping_modules = array();
     $shipping_methods_by_modules = array();
     foreach ($moduleFiles as $fileName) {
         $className = GetClassName($fileName);
         if (!$className) {
             continue;
         }
         eval("\$shippingModule = new " . $className . "();");
         $shipping_modules[] = $shippingModule;
         $shipping_methods_by_modules[] = shGetShippingMethodsByModule($shippingModule);
     }
     function cmpShObjs($a, $b)
     {
         return strcmp($a->title, $b->title);
     }
     usort($shipping_modules, "cmpShObjs");
     if (isset($_GET["install"])) {
         if (CONF_BACKEND_SAFEMODE) {
             Redirect(ADMIN_FILE . "?dpt=modules&sub=shipping&safemode=yes");
Example #10
0
*/
?>

<TABLE align="left" class="leftpanel" width=100>
<?IF(USR_CLASS) {
	$img = Get_Usr_Img(USR_NICK, USR_CLASS);
?>
	<TR>
		<TD class="b right"><?Print $text_nick." : ";?></TD>
		<TD nowrap><?Print USR_NICK;?></TD>
		<TD class="top right"><IMG src="img/<?Print $img;?>" height=16 width=16></TD>
	</TR>
<?}?>
	<TR>
		<TD class="b right" nowrap><?Print $text_class." : ";?></TD>
		<TD nowrap><?Print GetClassName(USR_CLASS)." (".USR_CLASS.")";?></TD>
	</TR><TR>
		<TD class="b right" nowrap><?Print $text_language." : ";?></TD>
		<TD<?IF(USR_CLASS){?> colspan=2<?}?> nowrap>
			<?
			IF($lang_http)
				{Print "<A href=\"".$lang_http."\" target=\"_blank\">".$lang_name."</A>";}
			ELSE
				{Print $lang_name;}
			Print " ".$text_by." ";
			IF($lang_email)
				{Print "<A href=\"mailto:".$lang_email."\">".$lang_author."</A>";}
			ELSE
				{Print $lang_author;}
			Print " (".$lang_version.")";
			?>
Example #11
0
<?php

require_once '../CoreLib.php';
session_start();
//Check for Login Flags
if ($_SESSION['LoginStatus'] == 0 || $_SESSION['LoginStatus'] == NULL) {
    header("location: ./index.php");
}
$ClassId = $_REQUEST['ClassIdToName'];
$getClassFacSubMap = $_REQUEST['getClassFacSubMap'];
$getClassFacSubMapJSON = $_REQUEST['getClassFacSubMapJSON'];
$getSubNameFromSubCode = $_REQUEST['getSubNameFromSubCode'];
$facSubMappings = $_REQUEST['facSubMappings'];
if ($ClassId != NULL) {
    echo GetClassName($ClassId);
}
//To Save the new FAC SUB Mappings
if ($facSubMappings != NULL) {
    for ($i = 1, $j = 1; $i <= 10; $i++) {
        if ($facSubMappings['sub' . $i] != "NO-NO") {
            $classIDDBValues[$j++] = $facSubMappings['sub' . $i];
        }
    }
    //print_r($facSubMappings);echo "<br>";print_r($classIDDBValues);echo "<br>";
    $bd = mysql_connect($mysql_hostname, $mysql_user, $mysql_password) or die("Could not connect database");
    mysql_select_db($mysql_database, $bd) or die("Could not select database");
    $query = "UPDATE `table_data` SET Data1='" . $classIDDBValues[1] . "', Data2='" . $classIDDBValues[2] . "', Data3='" . $classIDDBValues[3] . "', Data4='" . $classIDDBValues[4] . "', Data5='" . $classIDDBValues[5] . "', Data6='" . $classIDDBValues[6] . "', Data7='" . $classIDDBValues[7] . "', Data8='" . $classIDDBValues[8] . "', Data9='" . $classIDDBValues[9] . "', Data10='" . $classIDDBValues[10] . "' WHERE ID='" . $facSubMappings['mapClassid'] . "'";
    //echo $query;
    if (!mysql_query($query, $bd)) {
        die("<b>Looks like something went wrong while saving the Faculty-Subject Mappings, Please Try again!</b>");
    } else {
Example #12
0
function modGetModuleObj($_ID, $_ModuleType = 0)
{
    $ModuleConfig = modGetModuleConfig($_ID);
    $objectModule = null;
    if (!$_ID) {
        return $objectModule;
    }
    if ($ModuleConfig['ModuleClassName']) {
        if (class_exists($ModuleConfig['ModuleClassName'])) {
            eval('$objectModule = new ' . $ModuleConfig['ModuleClassName'] . '(' . $_ID . ');');
            if ($_ModuleType && $objectModule->getModuleType() != $_ModuleType) {
                $objectModule = null;
            }
        } else {
            $moduleFiles = array();
            $IncludeDir = '';
            switch ($_ModuleType) {
                case SHIPPING_RATE_MODULE:
                    $IncludeDir = "core/modules/shipping";
                    break;
                case PAYMENT_MODULE:
                    $IncludeDir = "core/modules/payment";
                    break;
                case SMSMAIL_MODULE:
                    $IncludeDir = "core/modules/smsmail";
                    break;
            }
            $moduleFiles = GetFilesInDirectory($IncludeDir, "php");
            foreach ($moduleFiles as $fileName) {
                $className = GetClassName($fileName);
                if (strtolower($className) != strtolower($ModuleConfig['ModuleClassName'])) {
                    continue;
                }
                require_once $fileName;
                eval('$objectModule = new ' . $className . '(' . $_ID . ');');
                return $objectModule;
            }
        }
    } else {
        $moduleFiles = array();
        switch ($_ModuleType) {
            case SHIPPING_RATE_MODULE:
                $moduleFiles = GetFilesInDirectory("core/modules/shipping", "php");
                break;
            case PAYMENT_MODULE:
                $moduleFiles = GetFilesInDirectory("core/modules/payment", "php");
                break;
            case SMSMAIL_MODULE:
                $IncludeDir = "core/modules/smsmail";
                break;
        }
        foreach ($moduleFiles as $fileName) {
            $className = GetClassName($fileName);
            if (!$className) {
                continue;
            }
            if (!class_exists($className)) {
                require_once $fileName;
            }
            eval('$objectModule = new ' . $className . '();');
            if ($objectModule->get_id() == $_ID && $objectModule->title == $ModuleConfig['module_name']) {
                return $objectModule;
            } else {
                $objectModule = null;
            }
        }
    }
    return $objectModule;
}