本文整理汇总了PHP中COMMONFUNC::output_fun方法的典型用法代码示例。如果您正苦于以下问题:PHP COMMONFUNC::output_fun方法的具体用法?PHP COMMONFUNC::output_fun怎么用?PHP COMMONFUNC::output_fun使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类COMMONFUNC
的用法示例。
在下文中一共展示了COMMONFUNC::output_fun方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$where_schoolreg_update = "fldId = " . $NewUserId;
$db->updateRec(TBL_ATHELETE_REGISTER, $strDataArr_schoolreg_update, $where_schoolreg_update);
################# Insert Custom College #################
}
// Send email to coach for Approval
if ($_POST['fldSchool'] != "other") {
//User Selected School
$schoolid = $func->input_fun($_POST['fldSchool']);
$sportid = $func->input_fun($_POST['fldSport']);
$emailarr = array();
$selquery = 'select first.fldId,first.fldEmail as fldEmail,first.fldName as name,first.fldLastName as lname,first.fldUsername as HSCoachUsername,first.fldPassword as HSCoachPassword from ' . TBL_HS_AAU_COACH . ' first,' . TBL_HS_AAU_COACH_SPORT_POSITION . ' second where second.fldCoachNameId = first.fldId and second.fldSportId =' . $sportid . ' and first.fldSchool =' . $schoolid;
$db->query($selquery);
$db->next_record();
if ($db->num_rows() > 0) {
for ($i = 0; $i < $db->num_rows(); $i++) {
$emailarr[] = $func->output_fun($db->f('fldEmail'));
$name = $func->output_fun($db->f('name'));
$lname = $func->output_fun($db->f('lname'));
#Login Info
$HSCoachUsername = $func->output_fun($db->f('HSCoachUsername'));
$HSCoachPassword = $func->output_fun($db->f('HSCoachPassword'));
$db->next_record();
}
foreach ($emailarr as $key => $emailvalue) {
######################## EMAIL to HS COACH - Athlete Approval Notification ########################
#Subject
$subjectStre = "College Prospect Network - Athlete Pending Approval";
#Intro
$bodyStre = "Hi Coach " . ucfirst($name) . ' ' . ucfirst($lname) . ",<br /><br />";
#Main Body
$bodyStre .= "You are receiving this email because " . ucfirst($aname) . " " . ucfirst($anamel) . " has applied to join <a href=http://www.CollegeProspectNetwork.com>www.CollegeProspectNetwork.com.</a> <br />";
示例2: checkItSelf
$db->next_record();
if ($db->num_rows() > 0) {
#check for record availability
echo '<tr><td align="center" class="normalblack_12" width="4%"> </td>
<td align="left" class="normalblack_12" width="8%"> <strong>S.No.</strong></td>
<td align="left" class="normalblack_12" width="25%"> <strong>Event Name</strong></td>
';
echo '<td class="normalblack_12" width="5%" align="center"><strong>Edit</strong></td>';
echo '<td class="normalblack_12" width="7%" align="center"><strong>Delete</strong></td>';
echo '<td class="normalblack_12" width="7%" align="center"><strong>Details</strong></td>';
echo '</tr>';
$count = "1";
for ($i = 0; $i < $db->num_rows(); $i++) {
$fldEventId = $func->output_fun($db->f('fldEventId'));
$fldEventName = $func->output_fun($db->f('fldEventName'));
$pageURL = "ADEventDetails.php?fldEventId={$fldEventId}";
$detailsWindowTitle = "AdminEventDetails";
echo '<tr><td align="center" class="normalblack_12"> ';
echo '<input type="checkbox" id="check_delete[]" name="check_delete[]" value="' . $fldEventId . '" onclick="return checkItSelf();">';
echo '<td align="left" class="normalblack_12"> ' . ($count + $_REQUEST['page'] * 10) . '</td>';
echo '
<td align="left" class="normalblack_12" >' . wordwrap($fldEventName, 17, "\n", true) . '</td>
';
echo '<td class="normalblack_12" align="center"><a href="ADEventEdit.php?mode=edit&fldEventId=' . $db->f('fldEventId') . '&page=' . $pageno . '"><img src="images/b_edit.png" border="0" title="Edit"></a></td>';
echo ' <td class="normalblack_12" align="center"><a href="javascript:deleteRecord(\'' . $fldEventId . '\',' . $pageno . ')"><img src="images/b_drop.png" border="0" title="Delete"></a></td>';
echo '<td class="normalblack_12" align="center"><a href="javascript:ShowDetails(\'' . $pageURL . '\',\'' . $detailsWindowTitle . '\')">View</a></td>';
echo '</tr>';
示例3: explode
echo $discount_amount = $func->output_fun($db->f('amount'));
$StartDate = $func->output_fun($db->f('StartDate'));
$EndDate = $func->output_fun($db->f('EndDate'));
$Status = $func->output_fun($db->f('Status'));
}
}
}*/
if ($_GET['mode'] == 'edit' and $id != "") {
#get the records
$query = " Select * from " . $tbl_transportation_discount . " where id =" . $id;
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
$db->query($query);
$db->next_record();
$id = $func->output_fun($db->f('id'));
$Event_id = $func->output_fun($db->f('Event_id'));
$Diparture_City = $func->output_fun($db->f('Diparture_City'));
$Departure_Time1 = $func->output_fun($db->f('Departure_Time'));
$Time = explode(":", $Departure_Time1);
$hour = $Time[0];
$option1 = explode(" ", $Time[1]);
$minute = $option1[0];
$option = $option1[1];
$Transportation_charge = $func->output_fun($db->f('Transportation_charge'));
$status = $func->output_fun($db->f('status'));
}
} else {
$id = "";
$Event_id = "";
$Diparture_City = "";
示例4:
//Create an instance of class COMMONFUNC
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>College Details</TITLE>
<link href="css/styles.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<?php
$fldId = $_REQUEST['fldId'];
$query = " Select * from " . TBL_COLLEGE_COACH_REGISTER . " where fldId = '{$fldId}'";
$db->query($query);
$db->next_record();
$fldId = $func->output_fun($db->f('fldId'));
$fldCollegeName = $func->output_fun($db->f('fldCollegename'));
//$fldCity = $func->output_fun($db->f('fldCity'));
//$fldState = $func->output_fun($db->f('fldState'));
$fldSport = $func->output_fun($db->f('fldNeedType'));
$fldUserName = $func->output_fun($db->f('fldUserName'));
$fldAddDate = $func->output_fun($db->f('fldAddDate'));
$fldSubscribe = $func->output_fun($db->f('fldSubscribe'));
$fldPosition = $func->output_fun($db->f('fldPosition'));
$fldEmail = $func->output_fun($db->f('fldEmail'));
$fldExpiredate = $func->output_fun($db->f('fldExpiredate'));
$fldFirstName = $func->output_fun($db->f('fldFirstName'));
$fldLastName = $func->output_fun($db->f('fldLastName'));
$fldAlternativeEmail = $func->output_fun($db->f('fldAlternativeEmail'));
$fldPhone = $func->output_fun($db->f('fldPhone'));
$fldAlternativePhone = $func->output_fun($db->f('fldAlternativePhone'));
示例5:
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>Coach Details</TITLE>
<link href="css/styles.css" rel="stylesheet" type="text/css">
</HEAD>
<BODY>
<?php
$fldId = $_REQUEST['fldId'];
$query = "Select * from " . TBL_SPORTS . " where fldId = '{$fldId}' ";
$db->query($query);
$db->next_record();
$fldId = $db->f('fldId');
$fldSportsname = $func->output_fun($db->f('fldSportsname'));
$fldDescription = $func->output_fun($db->f('fldDescription'));
$fldStatus = $func->output_fun($db->f('fldStatus'));
?>
<table width="100%" cellpadding="3" cellspacing="5">
<tr>
<td width="100%" align="center">
<table width="95%" cellpadding="0" cellspacing="3">
<tr>
<td width="100%" class="SearchHead"><b>Sports Details</b></td>
</tr>
<tr>
<td width="100%" class="GeneralFont"> </td>
</tr>
<tr>
示例6: checkItSelf
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
#check for record availability
echo '<tr><td align="center" class="normalblack_12" width="4%"> </td>
<td align="left" class="normalblack_12" width="8%"> <strong>S.No.</strong></td>
<td align="left" class="normalblack_12" width="25%"> <strong>Member Title</strong></td>
';
echo '<td class="normalblack_12" width="5%" align="center"><strong>Edit</strong></td>';
echo '<td class="normalblack_12" width="7%" align="center"><strong>Delete</strong></td>';
echo '</tr>';
$count = "1";
for ($i = 0; $i < $db->num_rows(); $i++) {
$fldPageId = $func->output_fun($db->f('fldPageId'));
$fldPageTitle = $func->output_fun($db->f('fldPageTitle'));
$pageURL = "ADPageDetails.php?fldPageId={$fldPageId}";
$detailsWindowTitle = "AdminPageDetails";
echo '<tr><td align="center" class="normalblack_12"> ';
echo '<input type="checkbox" id="check_delete[]" name="check_delete[]" value="' . $fldPageId . '" onclick="return checkItSelf();">';
echo '<td align="left" class="normalblack_12"> ' . ($count + $_REQUEST['page'] * 10) . '</td>';
echo '
<td align="left" class="normalblack_12" >' . wordwrap($fldPageTitle, 17, "\n", true) . '</td>
';
echo '<td class="normalblack_12" align="center"><a href="ADPageEdit.php?mode=edit&fldPageId=' . $db->f('fldPageId') . '&page=' . $pageno . '"><img src="images/b_edit.png" border="0" title="Edit"></a></td>';
echo ' <td class="normalblack_12" align="center"><a href="javascript:deleteRecord(\'' . $fldPageId . '\',' . $pageno . ')"><img src="images/b_drop.png" border="0" title="Delete"></a></td>';
echo '</tr>';
$db->next_record();
示例7:
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
$db->query($query);
$db->next_record();
$fldUsername = $db->f('fldUsername');
$fldEmail = $db->f('fldEmail');
$fldFirstname = $db->f('fldFirstname');
$fldLastname = $db->f('fldLastname');
$fldClass = $db->f('fldClass');
$fldHeight = $db->f('fldHeight');
$fldWeight = $db->f('fldWeight');
$fldDescription = $db->f('fldDescription');
$fldSchool = $db->f('fldSchool');
$fldSport = $db->f('fldSport');
$fldPrimaryPosition = $func->output_fun($db->f('fldPrimaryPosition'));
$fldSecondaryPosition = $func->output_fun($db->f('fldSecondaryPosition'));
$fldVertical = $func->output_fun($db->f('fldVertical'));
$fld40_yardDash = $func->output_fun($db->f('fld40_yardDash'));
$fldShuttleRun = $func->output_fun($db->f('fldShuttleRun'));
$fldBenchPressMax = $func->output_fun($db->f('fldBenchPressMax'));
$fldSquatMax = $func->output_fun($db->f('fldSquatMax'));
$fldGPA = $func->output_fun($db->f('fldGPA'));
$fldSATScore = $func->output_fun($db->f('fldSATScore'));
$fldACTScore = $func->output_fun($db->f('fldACTScore'));
$fldClassRank = $func->output_fun($db->f('fldClassRank'));
$fldClearinghouseEligible = $func->output_fun($db->f('fldClearinghouseEligible'));
$fldIntendedMajor = $func->output_fun($db->f('fldIntendedMajor'));
$fldStatus = $db->f('fldStatus');
}
} else {
示例8: header
if ($_SESSION['mode'] == "" or $_SESSION['FRONTEND_USER'] == "") {
header("Location:index.php");
}
//for paging
$func = new COMMONFUNC();
$db = new DB();
$flag = 0;
$error_msg = '';
$fldUsername = $_SESSION['FRONTEND_USER'];
$query = " Select * from " . TBL_ATHELETE_REGISTER . " where fldUsername = '{$fldUsername}' ";
$db->query($query);
$db->next_record();
$Status = $db->f('fldStatus');
$image_name = $db->f('fldImage');
$fldAthleteid = $db->f('fldId');
$fldFirstname = $func->output_fun($db->f('fldFirstname'));
$fldLastname = $func->output_fun($db->f('fldLastname'));
$fldClass = $func->output_fun($db->f('fldClass'));
$fldHeight = $func->output_fun($db->f('fldHeight'));
$fldWeight = $func->output_fun($db->f('fldWeight'));
$fldDescription = $func->output_fun($db->f('fldDescription'));
$fldDescription = str_replace("<br>", "\n", $fldDescription);
$fldEmail = $func->output_fun($db->f('fldEmail'));
$fldUsername = $func->output_fun($db->f('fldUsername'));
$fldSchool = $func->output_fun($db->f('fldSchool'));
$fldSport = $func->output_fun($db->f('fldSport'));
$fldJerseyNumber = $func->output_fun($db->f('fldJerseyNumber'));
$fldPrimaryPosition = $func->output_fun($db->f('fldPrimaryPosition'));
$fldSecondaryPosition = $func->output_fun($db->f('fldSecondaryPosition'));
$fldVertical = $func->output_fun($db->f('fldVertical'));
$fld40_yardDash = $func->output_fun($db->f('fld40_yardDash'));
示例9: wordwrap
$db->next_record();
if ($db->num_rows() > 0) {
#check for record availability
echo '<tr>
<td align="left" class="normalblack_12" width="8%"> <strong>S.No.</strong></td>
<td align="left" class="normalblack_12" width="25%"> <strong>Title</strong></td>
';
echo '<td class="normalblack_12" width="5%" align="center"><strong>Edit</strong></td>';
//echo '<td class="normalblack_12" width="7%" align="center"><strong>Delete</strong></td>';
//echo '<td class="normalblack_12" width="7%" align="center"><strong>View</strong></td>';
echo '</tr>';
$count = "1";
for ($i = 0; $i < $db->num_rows(); $i++) {
$fldId = $func->output_fun($db->f('fldId'));
$fldTitle = $func->output_fun($db->f('fldTitle'));
$pageURL = "ADHomeContentDetails.php?fldId={$fldId}";
$detailsWindowTitle = "Home Page Content";
echo '<tr>';
echo '<td align="left" class="normalblack_12"> ' . ($count + $_REQUEST['page'] * 10) . '</td>';
echo '
<td align="left" class="normalblack_12" >' . wordwrap($fldTitle, 17, "\n", true) . '</td>
';
echo '<td class="normalblack_12" align="center"><a href="ADHomeContentEdit.php?mode=edit&fldId=' . $db->f('fldId') . '&page=' . $pageno . '"><img src="images/b_edit.png" border="0" title="Edit"></a></td>';
echo '</tr>';
$db->next_record();
$count++;
}
示例10: COMMONFUNC
include_once "inc/common_functions.php";
//for common function
include_once "inc/page.inc.php";
include_once "inc/config.inc.php";
$func = new COMMONFUNC();
$db = new DB();
$tbl_transportation_discount = 'tbl_transportation_discount';
$c = $_REQUEST["c"];
$que = "select * from " . $tbl_transportation_discount . " where id='" . $c . "'";
$db->query($que);
if ($db->num_rows() > 0) {
?>
<?php
while ($db->next_record()) {
$Transportation_charge = $func->output_fun($db->f('Transportation_charge'));
}
?>
<p>
<label>Transportation Charge:</label>
<span>
<input type="text" name="Transportation_charge" id="Transportation_charge" value="<?php
echo $Transportation_charge;
?>
" readonly />
<!-- <span style="color:#444;line-height:18px;margin-left:230px;">
<font style="color:#777;">* We provide Transportation for Event and our charge is $20 <br />from sterling high school.<br></font>
<font style="color:#777;">* Bus leave at 6:15am & back at 8:00 pm<br />* If you want to interesting so selecting above Select Transportation</font>-->
</span>
</p>
示例11: validate
</head>
<body>
<?php
include 'header.php';
?>
<!--middle panel starts from here -->
<!--content panel starts from here -->
<div class="container">
<div class="innerWraper">
<div class="middle-bg">
<div class="cantener">
<div class="register-main" style="height:629px;">
<div class="registerPage_cmspage">
<?php
echo $func->output_fun($db->f('fldPageDescraption'));
?>
<?php
if (isset($_REQUEST['page_name']) and $_REQUEST['page_name'] == 'contactus') {
?>
<script language="JavaScript" type="text/JavaScript">
function validate() {
var error_msg = "";
if(trimString(document.frmAthReg.fldName.value) == "") {
error_msg += "Please Enter Name! \n";
} else {
if(hasSpecialCharaters(document.frmAthReg.fldName.value)) {
error_msg += "Enter valid Name! \n";
}
示例12:
echo $discount_amount = $func->output_fun($db->f('amount'));
$StartDate = $func->output_fun($db->f('StartDate'));
$EndDate = $func->output_fun($db->f('EndDate'));
$Status = $func->output_fun($db->f('Status'));
}
}
}*/
if ($_GET['mode'] == 'edit' and $Couponid != "") {
#get the records
$query = " Select * from " . $tbl_coupon . " where id =" . $Couponid;
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
$db->query($query);
$db->next_record();
$coupon_name = $func->output_fun($db->f('cpn_number'));
$discount_amount = $func->output_fun($db->f('amount'));
$StartDate = $func->output_fun($db->f('start_date'));
$EndDate = $func->output_fun($db->f('end_date'));
$event_id1 = $func->output_fun($db->f('event_id'));
$Status = $func->output_fun($db->f('Status'));
}
} else {
$coupon_name = "";
$discount_amount = "";
$StartDate = "";
$EndDate = "";
$event_id = "";
$Status = "";
}
if ($_POST['isSubmit'] == 'save') {
示例13: COUNT
<div class="container">
<div class="innerWraper">
<div class="middle-bg">
<div class="cantener">
<div class="register-main">
<h1>Messaging</h1>
<div class="registerPage messaging">
<?php
$username = $_SESSION['FRONTEND_USER'];
?>
<?php
$query = "SELECT COUNT(*) as count from " . TBL_MAIL . " WHERE UserTo='{$username}' and status='unread' and visible='ACTIVE'";
$db->query($query);
$db->next_record();
$count = $func->output_fun($db->f('count'));
?>
<div style="margin-bottom:15px;" class="messagecenter">
<?php
if ($count > 0) {
?>
<a href="Athmessage.php?action=inbox" <?php
echo $_REQUEST['action'] == 'inbox' || $_REQUEST['action'] == '' ? 'class="active"' : '';
?>
>Inbox (<?php
echo $count;
?>
)</a>
<?php
示例14: strtotime
//echo $queryString;
$db->query($query);
$db->next_record();
if ($db->num_rows() > 0) {
#check for record availability
echo '<tr>
<td align="left" class="normalblack_12" width="25%"> <strong>Event Name</strong></td>
<td align="left" class="normalblack_12" width="12%"> <strong>Event date</strong></td>';
echo '<td class="normalblack_12" width="4%" align="center" style="text-align:center;"><strong>Edit</strong></td>';
echo '<td class="normalblack_12" width="4%" align="center" style="text-align:center;"><strong>View</strong></td>';
echo '<td class="normalblack_12" width="8%" align="center" style="text-align:center;"><strong>Upload Stats</strong></td>';
echo '<td class="normalblack_12" width="5%" align="center" style="text-align:center;"><strong>Delete</strong></td>';
echo '</tr>';
$count = "1";
for ($i = 0; $i < $db->num_rows(); $i++) {
if ($func->output_fun($db->f('fld_UserType') == 'athlete') and $func->output_fun($db->f('fldUserName')) == $_SESSION['FRONTEND_USER'] or $func->output_fun($db->f('fld_UserType')) == 'admin') {
$fldEventId = $func->output_fun($db->f('fldEventId'));
$fldEventName = $func->output_fun($db->f('fldEventName'));
$pageURL = "ViewEventDetail.php?fldEventId={$fldEventId}";
$detailsWindowTitle = "ViewEventDetail";
$past_db = strtotime($func->output_fun($db->f('fldEventEndDate')));
$past_courrent = time();
echo '<tr>';
echo '<td align="left" class="normalblack_12">' . $fldEventName . '</td>';
echo '<td align="left" class="normalblack_12">' . $db->f('fldEventStartDate') . '</td>';
if ($func->output_fun($db->f('fld_UserType')) == 'athlete' and $func->output_fun($db->f('fldUserName')) == $_SESSION['FRONTEND_USER']) {
echo '<td class="normalblack_12" align="center" style="text-align:center;"><a href="editevent.php?mode=edit&fldEventId=' . $db->f('fldEventId') . '&page=' . $pageno . '"><img src="images/b_edit.png" border="0" title="Edit"></a></td>';
} else {
echo '<td class="normalblack_12" align="center" style="text-align:center;">Not Allowed</td>';
}
echo '<td class="normalblack_12" align="center" style="text-align:center;"><a href="javascript:ShowDetails(\'' . $pageURL . '\',\'' . $detailsWindowTitle . '\')"><img src="admin/images/view.gif" border="0" title="View"></a></td>';
示例15: getExtension
$AAUCity = $row['AAUCity'];
$AAUState = $row['AAUState'];
$AAUZipCode = $row['AAUZipCode'];
$AAUOther = $row['AAUOther'];
// END ADD fIELD ON 16-2-13
$fldTransportation = $row['fldTransportation'];
if (isset($row['fldTranscript'])) {
$fldTranscript = $row['fldTranscript'];
}
$fldCouponNumber = $row['fldCouponNumber'];
$fldprice = $row['fldprice'];
$fldpaymentstatus = $row['fldpaymentstatus'];
$evquery = "SELECT * FROM " . TBL_SPECIAL_EVENT . " WHERE `fldEventId` ='" . $fldSpecialEvent . "' ";
$db->query($evquery);
$db->next_record();
$fldEventStatus = $func->output_fun($db->f('fldEventStatus'));
$fldEventStartDate = $func->output_fun($db->f('fldEventStartDate'));
$fldEventName = $func->output_fun($db->f('fldEventName'));
$fldEventcurrentprice = $func->output_fun($db->f('fldEventcurrentprice'));
$fldEventfutureprice = $func->output_fun($db->f('fldEventfutureprice'));
$Early_Discount_day = $func->output_fun($db->f('Early_Discount_day'));
$Early_discount_rate = $func->output_fun($db->f('Early_discount_rate'));
$Transcript_discount = $func->output_fun($db->f('Transcript_discount'));
}
function getExtension($str)
{
$i = strrpos($str, ".");
if (!$i) {
return "";
}
$l = strlen($str) - $i;