本文整理汇总了PHP中COMMONFUNC类的典型用法代码示例。如果您正苦于以下问题:PHP COMMONFUNC类的具体用法?PHP COMMONFUNC怎么用?PHP COMMONFUNC使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了COMMONFUNC类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADCatagory.php
## Create Date : 10106/2011
## Description : It is use to performe the operation for add for Catagory.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "10";
$error_msg = '';
$flag = 0;
$fldEventStatus = 1;
if ($_POST['isSubmit'] == 'save') {
/* Validation Area Start*/
hb_php_validate($_POST['fldEventName'], "Please Enter Special Event Name!");
hb_php_validate($_POST['fldEventLocation'], "Please Enter Special Event Loacation!");
hb_php_validate($_POST['fldEventStartDate'], "Please Enter Special Event Start Date!");
hb_php_validate($_POST['fldEventcurrentprice'], "Please Enter Special Event Current Price!");
hb_php_validate($_POST['fldEventfutureprice'], "Please Enter Special Event Future Price!");
hb_php_validate($_POST['Early_Discount_day'], "Please Enter Early Discount Day!");
hb_php_validate($_POST['Early_discount_rate'], "Please Enter Early Discount Price!");
hb_php_validate($_POST['Transcript_discount'], "Please Enter Transcript Discount Price!");
示例2: session_start
<?php
include_once "inc/common_functions.php";
include_once "inc/page.inc.php";
session_start();
$func = new COMMONFUNC();
$db = new DB();
$flag = 0;
/*
* checks all active subscriptions in the database
* to see if they need to be billed again
*/
require_once 'anet_php_sdk/AuthorizeNet.php';
require_once 'AuthorizeNetMerchantAccount.php';
// gets today's date
$today = date('Y-m-d');
// gets all active records with a next bill date equal to today
$query = "SELECT * FROM " . TBL_COLLEGE_SUBSCRIPTION . " WHERE fldActive=1 AND fldNextBillDate='{$today}'";
$db->query($query);
// loops through all matching records, gets the customer's customer profile ID, the payment profile ID, and bills them for the subscription renewal. If the transaction faisl, the subscription is canceled
while ($db->next_record()) {
$fldId = $db->f('fldId');
$fldType = $db->f('fldType');
$fldCoach = $db->f('fldCoach');
$fldAmount = $db->f('fldAmount');
$fldPaymentProfileId = $db->f('fldPaymentProfileId');
// gets the customer profile Id
$query = "SELECT fldFirstName,fldLastName," . "fldANetCustomerProfileId,fldEmail FROM " . TBL_COLLEGE_COACH_REGISTER . " WHERE fldId={$fldCoach}";
$db1->query($query);
$db1->next_record();
$fldFirstName = $db1->f('fldFirstName');
示例3: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADCatagoryEdit.php
## Create Date : 10106/2011
## Description : It is use to performe the operation for edit for Catagory Information.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "2";
$error_msg = '';
$flag = 0;
$tbl_transportation_discount = 'tbl_transportation_discount';
$id = $_GET['id'];
$fldEventId = $_REQUEST['fldEventId'];
/*if(isset($_REQUEST['id']) && $_REQUEST['id']!='')
{
echo $q="select * from '".$tbl_coupon."' where id='".$Couponid."'";
$db->query($q);
if ($db->num_rows()>0) {
while($db->next_record())
{ echo $coupon_name=$func->output_fun($db->f('cpn_number'));
示例4: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADTeam.php
## Create Date : 10106/2011
## Description : It is use to performe the operation for add for Team.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "10";
$error_msg = '';
$flag = 0;
$fldStatus = 1;
if ($_POST['isSubmit'] == 'save') {
//Edit the user info
$fldTitle = $func->input_fun($_POST['fldTitle']);
$fldDescription = $func->input_fun($_POST['fldDescription']);
$fldStatus = $func->input_fun($_POST['fldStatus']);
$whereClause = "fldTitle='" . $func->input_fun($_POST['fldTitle']) . "'";
if ($db->MatchingRec("tbl_notes", $whereClause) > 0) {
#user Username already exists
$error_msg = 'This Note Already Exists!';
$flag++;
示例5: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADPageList.php
## Create Date : 13/06/2011
## Description : It is use to show the listig of Page.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
// for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$page = new Page();
//Create an instance of class Pate
$lnb = "2";
$error_msg = '';
$srchCond = '';
if (!$searchname) {
$searchname = $_REQUEST['searchname'];
}
$searchname = addslashes($searchname);
if (strlen($searchname) > 0) {
$queryString = "searchname={$searchname}";
$srchCond = "AND fldEventName like '%" . $searchname . "%'";
}
if ($_REQUEST['mode'] == "del") {
示例6: session_start
<?php
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Narendra Singh
## Page name : sendmsgtoath.php
## Create Date : 19/07/2011
## Description : It is use to send the message to athlete.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
session_start();
include_once "inc/common_functions.php";
//for common function
include_once "inc/config.inc.php";
//for paging
$func = new COMMONFUNC();
$db = new DB();
$fldAthleteid = isset($_REQUEST["fldAthleteid"]) ? $_REQUEST["fldAthleteid"] : 0;
$fldYoutubelink = "";
$fldYoutubeModifiedDate = "";
$youID = "";
$error_msg = "";
if ($_POST['isSubmit'] == 'save') {
$nowToday = date('Y-m-d H:i:s');
$fldNoteID = $func->input_fun($_POST['fldNoteID']);
if ($fldNoteID <= 0 || $fldNoteID == "") {
$error_msg = '<div class="thankyoumessage" style="margin-right:29px;">Please select Note.</div>';
} else {
$strDataArr = array('fldAthleteId' => $fldAthleteid, 'fldNoteId' => $fldNoteID, 'fldPostDate' => $nowToday);
$db->insertRec("tbl_athlete_notes", $strDataArr, "");
$error_msg = '
示例7: session_start
<?php
include_once 'inc/common_functions.php';
include_once 'inc/page.inc.php';
// TODO: Add a form token to make sure people aren't spoofing form data
session_start();
if ($_SESSION['mode'] == "" or $_SESSION['FRONTEND_USER'] == "") {
header("Location:index.php");
}
$func = new COMMONFUNC();
$db = new DB();
$flag = 0;
/*
* gets coach information. This is used to pre-fill form fields
* and provide necessary data for the Authorize.net transaction
*/
$query = 'SELECT * FROM ' . TBL_COLLEGE_COACH_REGISTER . " WHERE fldUserName='" . $_SESSION[FRONTEND_USER] . "'";
$db->query($query);
$db->next_record();
$fldCoach = $db->f('fldId');
$fldCollegename = $db->f('fldCollegename');
$fldtransectionId = $db->f('fldtransectionId');
$fldCancelCount = $db->f('fldCancelCount');
$fldSubscribe = $db->f('fldSubscribe');
// gets all active subscriptions for the current user
// gets available subscription types for the form
$table = TBL_COLLEGE_SUBSCRIPTION;
$fields = 'fldId,fldType,fldSport';
$where = 'WHERE fldCoach=' . $fldCoach . ' AND fldActive=1';
$subsList = $func->selectTableOrder($table, $fields, 'fldId', $where);
$subsCount = count($subsList);
示例8: session_start
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Narendra Singh
## Page name : sendmsgtoath.php
## Create Date : 19/07/2011
## Description : It is use to send the message to athlete.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "inc/common_functions.php";
//for common function
include_once "inc/page.inc.php";
include_once "inc/config.inc.php";
session_start();
//for paging
$func = new COMMONFUNC();
$db = new DB();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Messaging</title>
<META NAME="Keywords" CONTENT="My Account">
<META NAME="Description" CONTENT="My Account">
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="Javascript" src="javascript/functions.js"></script>
<script language="JavaScript" type="text/JavaScript"></script>
</head>
<body>
<!--middle panel starts from here -->
示例9: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADPageList.php
## Create Date : 13/06/2011
## Description : It is use to show the listig of Page.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
// for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$page = new Page();
//Create an instance of class Pate
$lnb = "2";
$error_msg = '';
$srchCond = '';
if (!$searchname) {
$searchname = $_REQUEST['searchname'];
}
$searchname = addslashes($searchname);
if (strlen($searchname) > 0) {
$queryString = "searchname={$searchname}";
$srchCond = "AND fldName like '%" . $searchname . "%'";
}
if ($_REQUEST['mode'] == "del") {
示例10: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADTeamEdit.php
## Create Date : 10106/2011
## Description : It is use to performe the operation for edit for Team Information.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "2";
$error_msg = '';
$flag = 0;
$fldId = $_GET['fldId'];
if ($_GET['mode'] == 'edit' and $fldId != "") {
#get the records
$query = " Select * from " . TBL_HS_AAU_TEAM_OTHER . " where fldId =" . $fldId;
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
$db->query($query);
$db->next_record();
$fldName = $db->f('fldName');
$fldAddress = $db->f('fldCoachName');
示例11: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADPageList.php
## Create Date : 13/06/2011
## Description : It is use to show the listig of Page.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
// for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$page = new Page();
//Create an instance of class Pate
$lnb = "2";
$error_msg = '';
//$searchname=$_REQUEST['hidVal'];
$srchCond = '';
if (!$searchname) {
$searchname = $_REQUEST['searchname'];
}
$searchname = addslashes($searchname);
if (strlen($searchname) > 0) {
$queryString = "searchname={$searchname}";
$srchCond = "AND fldPageTitle like '%" . $searchname . "%'";
}
示例12: session_start
<?php
include_once "inc/common_functions.php";
//for common function
include_once "inc/page.inc.php";
session_start();
if ($_SESSION['FRONTEND_USER'] == "") {
header("Location:index.php");
}
//for paging
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$page = new Page();
//Create an instance of class Pate
$lnb = "2";
$error_msg = '';
$srchCond = '';
if ($_SESSION['mode'] == "athlete") {
$athlete_info = $func->selectTableOrder(TBL_ATHELETE_REGISTER, "fldId,fldUsername,fldSchool,fldSport", "fldId", " where fldUsername='" . $_SESSION['FRONTEND_USER'] . "'");
}
if (!$searchname) {
$searchname = $_REQUEST['searchname'];
}
$searchname = addslashes($searchname);
if (strlen($searchname) > 0) {
$queryString = "searchname={$searchname}";
$srchCond = "AND fldEventName like '%" . $searchname . "%'";
}
if ($_REQUEST['mode'] == "del") {
$fldEventId = $_REQUEST['fldEventId'];
$delete_query_details = "delete from " . TBL_EVENT . " where fldEventId=" . $fldEventId;
示例13: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADCatagoryEdit.php
## Create Date : 10106/2011
## Description : It is use to performe the operation for edit for Catagory Information.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "2";
$error_msg = '';
$flag = 0;
$fldEventId = $_GET['fldEventId'];
if ($_GET['mode'] == 'edit' and $fldEventId != "") {
#get the records
$query = " Select * from " . TBL_SPECIAL_EVENT . " where fldEventId =" . $fldEventId;
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
$db->query($query);
$db->next_record();
$fldEventName = $db->f('fldEventName');
$fldSport = $db->f('fldSport');
示例14: COMMONFUNC
##******************************************************************
## Project : Sport Social Networking - Admin Panel
## Done by : Sanjay Chaudhary
## Page name : ADCatagoryEdit.php
## Create Date : 10106/2011
## Description : It is use to performe the operation for edit for Catagory Information.
## Copyright : Synapse Communications Private Limited.
## *****************************************************************
include_once "../inc/common_functions.php";
//for common function
include_once "../inc/page.inc.php";
//for paging
include "include/ADsessionAdmin.php";
//for admin login
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "2";
$error_msg = '';
$flag = 0;
$fldId = $_GET['fldId'];
if ($_GET['mode'] == 'edit' and $fldId != "") {
#get the records
$query = " Select * from " . TBL_ATHLETE_STATS_CATAGORY . " where fldId =" . $fldId;
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
$db->query($query);
$db->next_record();
$fldName = $db->f('fldName');
$fldNameint = $db->f('fldNameint');
示例15: session_start
<?php
include_once "inc/common_functions.php";
//for common function
include_once "inc/page.inc.php";
include_once "inc/config.inc.php";
//for paging
session_start();
$func = new COMMONFUNC();
//Create an instance of class COMMONFUNC
$lnb = "10";
$error_msg = '';
$flag = 0;
function getExtension($str)
{
$i = strrpos($str, ".");
if (!$i) {
return "";
}
$l = strlen($str) - $i;
$ext = substr($str, $i + 1, $l);
return $ext;
}
if ($_POST['isSubmit'] == 'save') {
//Edit the user info
$fldSchoolname = $func->input_fun($_POST['fldSchoolname']);
$fldUserName = $func->input_fun($_POST['fldUserName']);
//$city = $func->input_fun($_POST['city']);
$whereClause = "fldUserName='" . $fldUserName . "'";
if ($db->MatchingRec(TBL_HS_AAU_TEAM, $whereClause) > 0) {
#user Username already exists