本文整理汇总了PHP中myclass::posted_look_info方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::posted_look_info方法的具体用法?PHP myclass::posted_look_info怎么用?PHP myclass::posted_look_info使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::posted_look_info方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: myclass
session_start();
require "fs_folders/php_functions/connect.php";
require "fs_folders/php_functions/function.php";
require "fs_folders/php_functions/library.php";
require "fs_folders/php_functions/source.php";
require "fs_folders/php_functions/myclass.php";
$mc = new myclass();
$ri = new resizeImage();
$table_name = !empty($_GET['table_name']) ? $_GET['table_name'] : '';
$table_id = !empty($_GET['table_id']) ? $_GET['table_id'] : '';
// echo "table name = $table_name, table id = $table_id <br>";
if (!empty($table_name)) {
if ($table_name == 'postedlooks') {
// echo "postedlooks <br>";
$li = $mc->posted_look_info($table_id);
$mno = $_SESSION["mno"];
$lookOwnerName = $li["lookOwnerName"];
$pltags = $li['pltags'];
$plstyle = $li['style'];
$Ttag = count($li['pltags']);
$lookName = $li["lookName"];
$lookAbout = $li["lookAbout"];
$pltvotes = $li["pltvotes"];
$trating = $li["trating"];
$pltcomment = $li["pltcomment"];
$link = $li["article_link"];
$modal['table_id'] = $table_id;
$modal['table_name'] = $table_name;
} else {
if ($table_name == 'fs_postedarticles') {
示例2: intval
$_SESSION['plno'] = $plno;
// $plno = $plno;
$img = "{$mc->look_folder_lookdetails}/{$plno}.jpg";
$modal['table_name'] = 'postedlooks';
$modal['table_id'] = $plno;
$mc->get_visitor_info("", "lookdetails page lookid = {$plno} ", "home");
$nno = !empty($_GET['nno']) ? intval($_GET['nno']) : 0;
# UPDATE NOTIFICATION AS VIEWED
if ($nno != 0) {
$response = $mc->posted_modals_notification_Query(array('nno' => $nno, 'notification_query' => 'set-notification-viewed'));
}
# get image src
$modal['src'] = $mc->image(array('table_name' => $modal['table_name'], 'table_id' => $modal['table_id'], 'type' => 'get-default-image-src', 'size' => 'detail'));
// echo " this is the src $modal[src] <br> ";
# initialized 2
$li = $mc->posted_look_info($_GET['id']);
$_SESSION['plno'] = $_GET['id'];
$date_ = $li['date_'];
$lookOwnerMno = intval($li["lookOwnerMno"]);
$mno1 = intval($li["lookOwnerMno"]);
$memFsInfo = $mc->get_user_full_fs_info($mno1);
$opercentage = $memFsInfo['opercentage'];
$otrating = $memFsInfo['otrating'];
$user['username'] = $memFsInfo['username'];
$user['profile_tab'] = 'looks';
$mno = $_SESSION["mno"];
$lookOwnerName = $li["lookOwnerName"];
$pltags = $li['pltags'];
$plstyle = $li['style'];
$Ttag = count($li['pltags']);
$lookName = $li["lookName"];
示例3: if
if (!empty($_SESSION['adm_no'])) {
#can edit
}
else if ($mno == 136 ) {
$mc->save_current_page_visited( 'post-look-upload' );
//$mc->go('login');
}
$_SESSION['post_a_look_is_look_upload_once_in_db'] = false;
echo " this is is to be edited look = ".tobe_edite_look_id().'<br>';
if( is_edit_look( tobe_edite_look_id() ) ) {
// echo "edite look";
$plno=tobe_edite_look_id();
$pl_info=$mc->posted_look_info($plno);
// print_r($pl_info);
// echo 'lnmae '.$pl_info['lookName'].' ldesc'.$pl_info['lookAbout'];
// echo " total tags = ".count($pl_info['pltags']);
// for ($i=0; $i < count($pl_info['pltags']) ; $i++) {
// $pl_info[$i][]
// echo " pltags = ";
// }
$lookAbout = $pl_info['lookAbout'];
$pltags = $pl_info['pltags'];
$lookName = $pl_info['lookName'];
$occasion = $pl_info['occasion'];
$season = $pl_info['season'];
$style = $pl_info['style'];
$article_link = $pl_info['article_link'];
$pltags = $pl_info['pltags'];
示例4: toplook
function toplook($from, $rows)
{
$mc = new myclass();
$date_dif = $mc->date_difference();
if ($_SESSION['show'] == 'today') {
$q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno and date_ > '{$date_dif['today']}' order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
}
if ($_SESSION['show'] == 'week') {
$q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno and date_ > '{$date_dif['last_week']}' order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
}
if ($_SESSION['show'] == 'month') {
$q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno and date_ > '{$date_dif['last_month']}' order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
}
if ($_SESSION['show'] == 'year') {
$q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno and date_ > '{$date_dif['last_year']}' order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
}
if ($_SESSION['show'] == 'all') {
$q = "SELECT * from postedlooks pl,fs_members fm where pl.mno=fm.mno order by \n\t\t\t\t\t\t\t((select sum(r.rating) from ratings r where r.plno=pl.plno)+(select count(*) from pl_loves l where l.plno=pl.plno)) desc\n\t\t\t\t\t\tlimit {$from},{$rows} ";
}
$ex = mysql_query($q) or die(mysql_error());
$i = 1;
while ($r = mysql_fetch_array($ex)) {
$plinfo = $mc->posted_look_info($r[0]);
$xx = mysql_query("select sum(rating) from ratings where plno={$r['0']}") or die(mysql_error());
$rr = mysql_fetch_array($xx);
$xxx = mysql_query("select count(rating) from ratings where plno={$r['0']}") or die(mysql_error());
$rrr = mysql_fetch_array($xxx);
$xxxx = mysql_query("select count(*) from posted_looks_comments where plno={$r['0']}") or die(mysql_error());
$rrrr = mysql_fetch_array($xxxx);
$x5 = mysql_query("select count(*) from pl_loves where plno={$r['0']}") or die(mysql_error());
$r5 = mysql_fetch_array($x5);
$memq = mysql_query("select * from fs_members fs,fs_member_accounts fa where fs.mno=fa.mno and fs.mno=" . $r["mno"]) or die(mysql_error());
$rsmemq = mysql_fetch_array($memq);
$qr = mysql_query("select sum(r.rating) from ratings r, postedlooks pl where r.plno=pl.plno and pl.mno=" . $r["mno"]);
$rsqr = mysql_fetch_array($qr);
$qc = mysql_query("select count(*) from ratings r, postedlooks pl where r.plno=pl.plno and pl.mno=" . $r["mno"]);
$rsqc = mysql_fetch_array($qc);
$ql = mysql_query("select count(*) from pl_loves l, postedlooks pl where pl.plno=l.plno and pl.mno=" . $r["mno"]);
$rsql = mysql_fetch_array($ql);
$qf = mysql_query("select count(*) from friends f where mno2=" . $r["mno"]);
$rsqf = mysql_fetch_array($qf);
$qff = mysql_query("select count(*) from friends f where mno1=" . $r["mno"]);
$rsqff = mysql_fetch_array($qff);
echo "\n\t\t\t\t\t\t\t<style>\n\t\t\t\t\t\t\t\t.stands b{\n\t\t\t\t\t\t\t\t\tcolor:#000\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t</style>\n\t\t\t\t\t\t";
echo "\n\t\t\t\t\t\t\t\t<li >\n\t\t\t\t\t\t\t\t\t<div onmouseover=\"showRate({$r['0']},'block')\" onmouseout=\"showRate({$r['0']},'none')\" >\n\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;display:none;' id='rate{$r['0']}'>\n\t\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;'>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style='position:relative;left:44px;top:-20px;'><img src='images/corner.png' /></div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div style='position:absolute;'>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"overflow:hidden;font:bold 12px 'arial';padding:10px;width:150px;position:relative;left:50px;top:15px;background:url('images/trans-back.png');width:218px;color:white\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<b style=\"font:bold 15px 'arial'\">" . $r["lookName"] . "</b>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<br><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t" . $r["lookAbout"] . "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tTags: Polka Dot; Brand; <br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tOther<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tPrice: \$89<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\tWhere: Name of Store<br><br>\n\n\t\t\t\t\t\t\t\t\t\t\t\t\tPosted on " . $r["date_"] . "<br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t04:15 pm\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t<div class='rate' style='background:white;WIDTH:35px;padding:1px;position:relative;left:5px;top:-20px;border:1px solid #6d6d6d' >\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"padding:5px 2px 5px 2px;background:#02c7ea;font:bold 11px 'arial';color:#fff\">" . @round($rr[0] / ($rrr[0] * 5) * 100) . "%</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div style=\"padding:0px;background:white;font:bold 11px 'helvetica (TT)';color:#3b3b3b\">RATE</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r5' onclick=\"ratethis({$r['0']},5)\">5</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r4' onclick=\"ratethis({$r['0']},4)\" >4</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r3' onclick=\"ratethis({$r['0']},3)\" >3</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r2' onclick=\"ratethis({$r['0']},2)\" >2</div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div id='r1' onclick=\"ratethis({$r['0']},1)\" >1</div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t<div onclick=\"dripthis({$r['0']})\" style=\"background:white url('images/drip.png') center no-repeat\"> </div>\n\t\t\t\t\t\t\t\t\t\t\t\t<div onclick=\"lovethis({$r['0']})\" style=\"background:white url('images/love.png') center no-repeat\"> </div>\n\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t<table border=0 width=100% >\n\t\t\t\t\t\t\t\t\t\t\t<td valign=top >\n\t\t\t\t\t\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<img onclick=\"window.location='lookdetails.php?id={$r['0']}'\" src='images/members/posted looks/{$r['0']}.jpg' style='width:287px;height:450px' />\n\t\t\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t<div style='padding:5px;'></div>\n\t\t\t\t\t\t\t\t\t\t<table width=100% class='stands'>";
if (file_exists("../images/members/{$rsmemq['mno']}.jpg")) {
echo "<td width=1><a href='" . $rsmemq["username"] . "'><img src='images/members/" . $rsmemq["mno"] . ".jpg' width=50px height=53px style='margin-top:6px;' /></a></td>";
} else {
echo "<td width=1><a href='" . $rsmemq["username"] . "'><img src='images/members/0.jpg' width=50px height=53px style='margin-top:6px;' /></a></td>";
}
echo "\t\n\t\t\t\t\t\t\t\t\t\t\t\t<td style='padding:5px;'> ";
// echo "<a href='".$rsmemq["username"]."' style='color:#454545;font:15px helveticaBold;text-decoration:none;//text-transform:uppercase'>".$rsmemq["firstname"]." ".$rsmemq["lastname"]."</a><br>";
echo "<a style='color:#454545;font:12px helveticaBold;text-decoration:none;//text-transform:uppercase'>" . $rsmemq["firstname"] . " " . $rsmemq["lastname"] . " </a> <span style='font-size:11px'>posted a new look </span><br>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span style='color:#454545;font:11px helvetica; font-weight:bold;' >" . $plinfo['tlrates'] . " Rates | Ratings " . $plinfo['tlrpercent'] . " %</span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t<table style='width:auto;color:#454545;font:bold 11px helvetica' border=0>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td><b>{$plinfo['tldrips']}</b></td><td><img src='images/drip.png' height=10 /></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td> | <b>{$plinfo['tllove']}</b></td><td><img src='images/love.png' height=10 /></td>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<td> | " . $plinfo['tlcomments'] . " Comments</b></td> \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span style='font-size:11px;font-weight:bold'>" . get_look_tview($r[0]) . " total Views</span>\n\t\t\t\t\t\t\t\t\t\t\t\t</td>\n\t\t\t\t\t\t\t\t\t\t\t\t<td valign=center ><br><img src='images/look-icon.png' /></td>\n\t\t\t\t\t\t\t\t\t\t\t</table>\n\t\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t</li>\t\n\t\t\t\t\t\t\t\t";
$i++;
}
}
示例5:
$mc->auto_detect_path();
$_SESSION['mno'] = $mc->get_cookie('mno', 136);
$mno = $mc->get_cookie('mno', 136);
if (!empty($_SESSION['adm_no'])) {
#can edit
} else {
if (empty($_SESSION['mno'])) {
$mc->go('home');
}
}
$_SESSION['post_a_look_is_look_upload_once_in_db'] = false;
// echo " this is is to be edited look = ".tobe_edite_look_id().'<br>';
if (is_edit_look(tobe_edite_look_id())) {
// echo "edite look";
$plno = tobe_edite_look_id();
$pl_info = $mc->posted_look_info($plno);
// print_r($pl_info);
// echo 'lnmae '.$pl_info['lookName'].' ldesc'.$pl_info['lookAbout'];
// echo " total tags = ".count($pl_info['pltags']);
// for ($i=0; $i < count($pl_info['pltags']) ; $i++) {
// $pl_info[$i][]
// echo " pltags = ";
// }
$lookAbout = $pl_info['lookAbout'];
$pltags = $pl_info['pltags'];
$lookName = $pl_info['lookName'];
$occasion = $pl_info['occasion'];
$season = $pl_info['season'];
$style = $pl_info['style'];
$article_link = $pl_info['article_link'];
$_SESSION['last_look_uploaded'] = $plno;