当前位置: 首页>>代码示例>>PHP>>正文


PHP getYear函数代码示例

本文整理汇总了PHP中getYear函数的典型用法代码示例。如果您正苦于以下问题:PHP getYear函数的具体用法?PHP getYear怎么用?PHP getYear使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了getYear函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: getWeekNum

 /**
  * 取得した休日のsort_orderを判定
  *
  * @param
  */
 function getWeekNum($date)
 {
     //         $sql = 'select week_num from m_term where start_date <= :date and :date <= end_date';
     //         $searchParam['date'] = $date;
     //         // データベースに接続する
     //         $conn = DbControl::getInstance();
     //         $conn->dbConnect(DbControl::SLAVE_DB);
     //         // クエリを実行する
     //         $res = $conn->dbExecFetch(DbControl::SLAVE_DB, $sql, $searchParam);
     //         if($_SESSION[SESSION_USER_ID] == 4) {
     //指定した日付の年間週番号
     $wnum = 1;
     $year = getYear($date);
     $month = getMonth($date);
     $day = 01;
     $preg = '%04d%02d%02d';
     $this_d = sprintf($preg, $year, $month, $day);
     $start_w = $this->getDayNum($this_d);
     if ($start_w == 0) {
         $start_w = 7;
     }
     $date_d = substr($date, 6, 2);
     for ($i = 1; $i <= $date_d; $i++) {
         if ($start_w == 7) {
             $start_w = 1;
             if ($i != 1) {
                 $wnum++;
             }
         } else {
             $start_w++;
         }
     }
     return $wnum;
 }
开发者ID:te-koyama,项目名称:sheep,代码行数:39,代码来源:class.Report.php

示例2: getYear

</div>
		<div id="footer">
			<?php 
function getYear()
{
    $theday = getdate();
    $y = $theday[year];
    return $y;
}
?>

<p><a target="_blank" href="http://www.glit.edu"><img width="107" height="41" border="0" align="middle" alt="Visit the Great Lakes Institute of Technology Website" src="http://www.erieit.edu/_files/images/glit_logo.png" /></a><a href="http://www.youtube.com/thecareerschools" target="_blank"><img width="80" height="41" border="0" align="middle" src="http://www.erieit.edu/_files/images/file_120.png" alt="See EIT videos on YouTube.com/thecareerschools" /></a>&nbsp;&nbsp; <a href="http://www.facebook.com"><img width="100" height="38" border="0" align="middle" src="http://www.erieit.edu/_files/images/file_118.png" alt="Become a friend of EIT
on Facebook:  thecareerschools" /></a>&nbsp;&nbsp; <a href="http://www.twitter.com/EITCareerServ" target="_blank"><img width="100" height="23" border="0" align="middle" src="http://www.erieit.edu/_files/images/file_108.png" alt="Follow EIT Career Services Office on Twitter:  EITCareerServ" /></a><br />
Home |&nbsp;<a href="http://www.erieit.edu/alumni/">Career Services (Alumni &amp; Employers)</a>&nbsp;|&nbsp;<a href="http://www.erieit.edu/careers/">Employment</a> | <a href="http://www.erieit.edu/contact/">Contact Us</a> | <a href="http://www.erieit.edu/site map/">Site Map</a> | <a href="http://www.erieit.edu/privacy/">Privacy Policy</a> | <a href="mailto:info@erieit.edu">Webmaster</a> | <a href="http://www.glit.edu">glit.edu</a>  | <a href="http://toniguy.com/academy/erie/default.aspx">toniguy.com</a> <br />
&copy; <? echo getYear(); ?>Erie Institute of Technology, All Rights Reserved</p>
<br />
		</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-2137940-3");
pageTracker._initData();
pageTracker._trackPageview();


</script>
	</body>
</html>
开发者ID:jackmolnar,项目名称:glit_website_new,代码行数:30,代码来源:index.php

示例3: getTerm

function getTerm()
{
    $date = date('Y-m-d');
    // 		$date=date('Y-m-d', strtotime("10/10/".getYear()));	//--(m/d/Y)
    $term1Begin = date('Y-m-d', strtotime("05/18/" . getYear()));
    // 		$term1End = date('Y-m-d', strtotime("10/10/".getYear()));
    $term1End = date('Y-m-d', strtotime("10/31/" . getYear()));
    // 		$term2Begin = date('m-d', strtotime("11/02"));
    $term2Begin = date('Y-m-d', strtotime("11/01/" . getYear()));
    $term2End = date('Y-m-d', strtotime("03/25" . getYear() . " +1 year"));
    if ($date >= $term1Begin && $date <= $term1End) {
        $term = 1;
    } elseif ($date >= $term2Begin && $date <= $term2End) {
        $term = 2;
    } else {
        $term = 3;
    }
    return $term;
}
开发者ID:nextinfos,项目名称:htdocs,代码行数:19,代码来源:config.php

示例4: unibo

 function unibo()
 {
     $this->location = "div1_div3_div2";
     //titolo
     parent::XPathFilter("//div[@id=\"articleTitle\"]/h3");
     $this->title = parent::toString("txt");
     $this->title = trim($this->title);
     $this->locations["title"] = "_div3_div2_h31";
     $this->start_array["title"] = 0;
     $this->end_array["title"] = mb_strlen($this->title, "UTF-8");
     //anno pubblicazione
     parent::XPathFilter("//div[@id=\"breadcrumb\"]//a[@target=\"_parent\"][2]");
     $this->year = parent::toString("txt");
     $arr = explode(" ", $this->year);
     $arr2 = explode("(", $this->year);
     $this->year = $arr[count($arr) - 1];
     $this->year = substr($this->year, 1, 4);
     $this->locations["year"] = "_div2_a2";
     $start = mb_strlen($arr2[0], "UTF-8") + 1;
     $this->start_array["year"] = $start;
     $this->end_array["year"] = $start + mb_strlen($this->year, "UTF-8");
     //autori
     parent::XPathFilter("//div[@id=\"authorString\"]/em");
     $autore = parent::toString("txt");
     $this->authors = explode(", ", $autore);
     if (strcmp($this->authors[0], "") == 0) {
         //dato che l'explode di una stringa vuota da come risultato un array di un elemento con chiave 0 e valore stringa vuota è necessario questo controllo
         $this->authors = null;
     } else {
         $this->locations["authors"] = "_div3_div3_em1";
         $start = 0;
         $end = 0;
         foreach ($this->authors as $key => $val) {
             $this->authors[$key] = trim($val);
             $val = $this->authors[$key];
             if ($key == 0) {
                 $start = 0;
                 $end = mb_strlen($val, "UTF-8");
                 $this->start_array[$key] = $start;
                 $this->end_array[$key] = $end;
             } else {
                 $start = $end + 2;
                 $end = $start + mb_strlen($val, "UTF-8");
                 $this->start_array[$key] = $start;
                 $this->end_array[$key] = $end;
             }
         }
         //inutili per unibo, ma servono per dare uniformità con dlib
         $this->locations["firstauthors"] = "";
         $this->locations["continuation_of_authors"] = "";
     }
     //doi
     parent::XPathFilter("//a[@id=\"pub-id::doi\"]");
     $this->doi = parent::toString("txt");
     $this->doi = trim($this->doi);
     $this->locations["doi"] = "_div3_a1";
     $this->start_array["doi"] = 0;
     $this->end_array["doi"] = mb_strlen($this->doi, "UTF-8");
     //abstract
     parent::XPathFilter("//div[@id=\"articleAbstract\"]//div");
     $this->abstract = parent::toString("txt");
     $this->abstract = trim($this->abstract);
     $tmp = parent::toString();
     //prendo il nodo con ancora i tag html per controllare se il contenuto dell' abstract direttamente nel div o in un p dentro al div
     $tmp = substr($tmp, 5, 3);
     $this->locations["abstract"] = "_div3_div4_div1";
     if (strpos($tmp, "<p") !== FALSE) {
         $this->locations["abstract"] .= "_p1";
     }
     $this->start_array["abstract"] = 0;
     $this->end_array["abstract"] = mb_strlen($this->abstract, "UTF-8");
     //su unibo le intro sono al più dentro i documenti pdf, quindi non è richiesto che lo scraper le sappia prendere
     //citazioni
     $set = null;
     parent::XPathFilter("//body//div[@id=\"articleCitations\"]/div[1]//p");
     $set = $this->nodes->each(function ($node) {
         return $node->text();
     });
     $citazione = null;
     foreach ($set as $nann => $v) {
         $title = null;
         $year = null;
         $doi = null;
         $url = null;
         $authors = array();
         $tmp = 0;
         //target
         $pos = $nann + 1;
         $this->locations["citos"][$nann] = "_div3_div7_div1_p{$pos}";
         $this->start_array["citos"][$nann] = 0;
         $this->end_array["citos"][$nann] = $this->start_array["citos"][$nann] + mb_strlen(trim($v), "UTF-8");
         //autori
         $authors = getAuthorsUnibo($v);
         //anno della citazione
         $year = getYear($v, $this->year);
         //titolo
         $title = getTitleUnibo($v, $year, $authors);
         //doi e url della citazione
         $coppia = getDoiAndURL($v);
         if (isset($coppia[0])) {
//.........这里部分代码省略.........
开发者ID:Lucci93,项目名称:Sparkle-Parkle-Project,代码行数:101,代码来源:SparkleScraper.php

示例5: display

                    <ul>
                        <li><a href="#sitemap" class="active">sitemap</a></li>
                        <li><a href="#aboutDev">privacy</a></li>
                        <li><a href="#disclaimer">legal</a></li>
                        <li><a href="#contactUs">help</a></li>
                        <li><a href="#contactUs">about developer</a></li>
                    </ul>
                    <p>Copyright &copy; <?php 
display(getYear());
?>
 <a href="<?php 
display(base_url());
?>
">ingnepal.org</a>. All Rights Reserved.</p>
                    <div class="clearfix"></div>
开发者ID:puncoz,项目名称:ingnepal.org,代码行数:15,代码来源:general_footer.php

示例6: dayDiff

function dayDiff($timestamp1, $timestamp2)
{
    $dayInYear1 = getDayOfYear($timestamp1);
    $dayInYear2 = getDayOfYear($timestamp2);
    return getYear($dayInYear1) * 365 + $dayInYear1 - (getYear($dayInYear2) * 365 + $dayInYear2);
}
开发者ID:kirvin,项目名称:the-nerdery,代码行数:6,代码来源:global_functions.php

示例7: draw_page

function draw_page($persistent)
{
    ?>
<h1>ברוכים הבאים - אנא מלאו את הפרטים הבאים על מנת להצטרף למערכת</h1>
<form name="registation" method="POST">
<table>
	<tr>
		<td>*שם פרטי:</td>
		<td>
			<input type="text" name="first_name" title="הכנס שם פרטי" value="<?php 
    print_r($persistent["first_name"]);
    ?>
">
		</td>
	</tr>
	<tr>
		<td>*שם משפחה:</td>
		<td>
			<input type="text" name="last_name" title="הכנס שם משפחה"value="<?php 
    print_r($persistent["last_name"]);
    ?>
">
		</td>
	</tr>
		
	<tr>		
		<td>*שם משתמש:</td>
		<td>
			<input type="text" name="user_name" title="הכנס שם משתמש באותיות לועזיות" value="<?php 
    print_r($persistent["user_name"]);
    ?>
">
		</td>
	</tr>
	
	<tr>
		<td>*סיסמא:</td>
		<td>
			<input type="password" name="pass1"  title="הכנס סיסמה סודית" value=<?php 
    print_r($persistent["pass1"]);
    ?>
>
		</td>
	</tr>
	
	<tr>
		<td>*אימות סיסמא:</td>
		<td>
			<input type="password" name="pass2"  title="הכנס סיסמה סודית" value=<?php 
    print_r($persistent["pass1"]);
    ?>
>
		</td>
	</tr>
 	<tr>
		<td>בית ספר:</td>
		<td>
			<select name="memberOfGroup"> 
				<?php 
    getGroupsList();
    ?>
			</select>
		</td>
	</tr> 
	<tr>
		<td>מספר זהות:</td>
		<td>
			<input type="text" name="ID" title="הכנס מספר זהות בן 9 ספרות" value="<?php 
    print_r($persistent["ID"]);
    ?>
">
		</td>
	</tr>
	
	<tr>
		<td>כתובת דוא"ל:</td>
		<td>
			<input type="text" name="email" title="הכנס כתובת דואר אלקטרוני" value=<?php 
    print_r($persistent["email"]);
    ?>
>
		</td>
	</tr>
	
	<tr>
		<td>תאריך לידה:</td>
		<td>   
			<select name="year_of_birth" >
			<?php 
    getYear();
    ?>
			</select>
		
		    
			<select name="month_of_birth" >
			<?php 
    getMonth();
    ?>
			</select>
		
//.........这里部分代码省略.........
开发者ID:BGCX261,项目名称:zivweb-svn-to-git,代码行数:101,代码来源:new_user_registration.php

示例8: getDate

 public function getDate()
 {
     return getYear($this->datestamp);
 }
开发者ID:cyrilix,项目名称:rompr,代码行数:4,代码来源:collection.php

示例9: key

 if (isset($request['name'])) {
     $param['name'] = $request['name'];
 }
 if (isset($request['staff_cd'])) {
     $param['staff_cd'] = $request['staff_cd'];
 }
 $termid = false;
 if (isset($request['submit'])) {
     $button = key($request['submit']);
     if (isset($request['weekDays'][$button])) {
         $titleDay = $request['weekDays'][$button];
         //TOPからの遷移
         //             $year = 2014;
         //             $titleDay = 0101;
         $date = changeYYMMDD($year, $titleDay);
         $year = getYear($date);
         $month = getMonth($date);
         $day = getDayYmd($date);
         $termid = getTermId($date);
         $param['target_date'] = $date;
         $param['titleDay'] = $titleDay . '(' . $day . ')';
     }
     if (isset($request['title'][$button])) {
         $param['title'] = $request['title'][$button];
     }
     if (isset($request['comment'][$button])) {
         $param['comment'] = $request['comment'][$button];
     }
     if (isset($request['sort_order'][$button])) {
         $param['sort_order'] = $request['sort_order'][$button];
     }
开发者ID:te-koyama,项目名称:sheep,代码行数:31,代码来源:daily_edit.php

示例10: makeDispArray

function makeDispArray(&$dispArray, $tmpArray, $arrayPeriod, $targetMonth, $targetYear, $breakid, $breakname, $breakcd, $breakmail, $name)
{
    if (empty($tmpArray) || count($tmpArray) == 0) {
        return 0;
    }
    $makeArray = array();
    $makeName = array();
    foreach ($name as $key => $val) {
        foreach ($val as $key_1 => $val_1) {
            if (empty($makeName[$key])) {
                $makeName[$key] = "";
            }
            $makeName[$key] .= ' / ' . $val_1;
        }
    }
    // 対象の責任者月のみ初期配列を作成
    foreach ($arrayPeriod as $key => $val) {
        // 月指定検索の場合、該当月分のみ初期配列を作成する
        if (!empty($targetMonth) && isset($targetMonth) && $targetMonth != $val) {
            continue;
        }
        $makeArray[$breakid][$targetYear][$val]["staff_cd"] = $breakcd;
        $makeArray[$breakid][$targetYear][$val]["name"] = $breakname;
        //$makeArray[$breakid][$targetYear][$val]["mail"] = ""; //DEL R. Kumabe 20150710
        $makeArray[$breakid][$targetYear][$val]["mail"] = $breakmail;
        //ADD R. Kumabe 20150710
        $makeArray[$breakid][$targetYear][$val]["retire_flg"] = "";
        $makeArray[$breakid][$targetYear][$val]["target_date"] = "";
        $makeArray[$breakid][$targetYear][$val]["hearing_id"] = "";
        $makeArray[$breakid][$targetYear][$val]["EmpName"] = $makeName[$val];
    }
    foreach ($tmpArray as $key => $val) {
        if (empty($val["hearing_id"]) || is_null($val["hearing_id"])) {
            $start_month = "";
            $end_month = "";
            // 責任者として関連が有るが、ヒアリングシートがまだ作成されていない場合
            $start_month = (int) substr($val['start_date'], 4, 2);
            $end_month = (int) substr($val['end_date'], 4, 2);
            // $val['end_date']に月末を含んでいなければ$end_monthを-1する(月末まで担当している場合にヒアリングシートを記入するため)
            $year_of_end_date = getYear($val['end_date']);
            $month_of_end_date = getMonth($val['end_date']);
            $end_of_end_date = getYYYYMMDD($year_of_end_date, $month_of_end_date, "end_of_month");
            if ($val['end_date'] < $end_of_end_date) {
                $end_month = $end_month - 1;
            }
            for ($i = $start_month; $i <= $end_month; $i++) {
                // 月指定検索の場合、該当月分のみ初期配列を作成する
                if (!empty($targetMonth) && isset($targetMonth) && $targetMonth != $i) {
                    continue;
                }
                $makeArray[$breakid][$targetYear][$i]["staff_cd"] = $val["staff_cd"];
                $makeArray[$breakid][$targetYear][$i]["name"] = $val["name"];
                $makeArray[$breakid][$targetYear][$i]["mail"] = $val["mail"];
                $makeArray[$breakid][$targetYear][$i]["retire_flg"] = $val["retire_flg"];
                $makeArray[$breakid][$targetYear][$i]["target_date"] = getYYYYMMDD($targetYear, $i, "target_date");
                $makeArray[$breakid][$targetYear][$i]["hearing_id"] = $val["hearing_id"];
                //                  $makeArray[$breakid][$targetYear][$i]["EmpName"] .= ', ' . $val["new_emp_name"];
            }
        } else {
            $makeArray[$breakid][$targetYear][$val['target_month']]["staff_cd"] = $val["staff_cd"];
            $makeArray[$breakid][$targetYear][$val['target_month']]["name"] = $val["name"];
            $makeArray[$breakid][$targetYear][$val['target_month']]["mail"] = $val["mail"];
            $makeArray[$breakid][$targetYear][$val['target_month']]["retire_flg"] = $val["retire_flg"];
            $makeArray[$breakid][$targetYear][$val['target_month']]["target_date"] = getYYYYMMDD($targetYear, $val['target_month'], "target_date");
            $makeArray[$breakid][$targetYear][$val['target_month']]["hearing_id"] = $val["hearing_id"];
            // 現在設定されている期間外でのヒアリングシートが存在すると、初期化で未作成の為に
            // noticeが出る事有るので存在チェックを行う  文字列結合しようとしている為初期化されていないと
            // noticeが出る
            if (empty($makeArray[$breakid][$targetYear][$val['target_month']]["EmpName"])) {
                $makeArray[$breakid][$targetYear][$val['target_month']]["EmpName"] = "";
            }
            //             $makeArray[$breakid][$targetYear][$val['target_month']]["EmpName"] .= ', ' . $val["new_emp_name"];
        }
    }
    //var_dump ($tmpArray);
    $work = array();
    foreach ($makeArray as $key => $val) {
        foreach ($val as $key_1 => $val_1) {
            foreach ($val_1 as $key_2 => $val_2) {
                $work["id"] = $key;
                $work["staff_cd"] = $val_2["staff_cd"];
                $work["targetYear"] = $key_1;
                $work["targetMonth"] = $key_2;
                $work["name"] = $val_2["name"];
                $work["mail"] = $val_2["mail"];
                $work["retire_flg"] = $val_2["retire_flg"];
                $work["target_date"] = $val_2["target_date"];
                $work["hearing_id"] = $val_2["hearing_id"];
                $work["EmpName"] = ltrim($val_2["EmpName"], " / ");
                array_push($dispArray, $work);
            }
        }
    }
}
开发者ID:te-koyama,项目名称:sheep,代码行数:94,代码来源:search.php

示例11: json_decode

<?php

$scoreID = $_REQUEST['scoreID'];
$score = json_decode($_REQUEST['score']);
$studentID = json_decode($_REQUEST['studentID']);
$scoreType = $_REQUEST['scoreType'];
$subjectID = $_REQUEST['subjectID'];
$result['sizeOf'] = sizeof($score);
for ($i = 0; $i < sizeof($score); $i++) {
    $result['data'][$studentID[$i]] = $score[$i];
    if ($score[$i] != '') {
        if ($scoreType == 'GRADE') {
            if (!gradeSet($subjectID, getTerm(), getYear(), $studentID[$i], $score[$i])) {
                $result['error'][$studentID[$i]] = TRUE;
            }
        } else {
            if (!scoreSet($scoreID, $studentID[$i], $score[$i])) {
                $result['error'][$studentID[$i]] = TRUE;
            }
        }
    }
}
echo json_encode($result);
开发者ID:nextinfos,项目名称:htdocs,代码行数:23,代码来源:setScore.php

示例12: elseif

} elseif ($report == "score") {
    $strSQL = sprintf("\n    SELECT\n      regstu.subjectID,sub.name,regstu.grade\n    FROM\n      `register-student` regstu,\n      `subject` sub\n    WHERE\n      regstu.subjectID = sub.subjectID AND\n      regstu.studentID = '%s' AND\n      regstu.registerID =\n      (\n        SELECT\n          registerID\n        FROM\n          `registerinfo`\n        WHERE\n          `term` = '%s' AND\n          `year` = '%s'\n      )\n    ", mysql_real_escape_string($studentID), mysql_real_escape_string(getTerm()), mysql_real_escape_string(getYear()));
    $objQuery = mysql_query($strSQL);
    if ($objQuery && mysql_num_rows($objQuery) > 0) {
        while ($row = mysql_fetch_array($objQuery)) {
            $preData['grade'] = $row['grade'] != '' ? $row['grade'] : '--';
            $preData['subjectID'] = $row['subjectID'];
            $preData['subjectName'] = $row['name'];
            $strSQL = sprintf("\n          SELECT\n            scoreID,maxScore\n          FROM\n            `scoreinfo`\n          WHERE\n            subjectID = '%s' AND\n            registerID =\n            (\n              SELECT\n                registerID\n              FROM\n                `registerinfo`\n              WHERE\n                `term` = '%s' AND\n                `year` = '%s'\n            )\n          ", mysql_real_escape_string($row['subjectID']), mysql_real_escape_string(getTerm()), mysql_real_escape_string(getYear()));
            $objQuery2 = mysql_query($strSQL);
            if ($objQuery2 && mysql_num_rows($objQuery2) > 0) {
                $maxScore = 0;
                $sumScore = 0;
                while ($row2 = mysql_fetch_array($objQuery2)) {
                    $maxScore += $row2['maxScore'];
                    $strSQL = sprintf("\n                SELECT\n                  score\n                FROM\n                  `studentscore`\n                WHERE\n                  scoreID = '%s' AND\n                  subjectID = '%s' AND\n                  studentID = '%s' AND\n                  registerID =\n                  (\n                    SELECT\n                      registerID\n                    FROM\n                      `registerinfo`\n                    WHERE\n                      `term` = '%s' AND\n                      `year` = '%s'\n                  )\n                ", mysql_real_escape_string($row2['scoreID']), mysql_real_escape_string($row['subjectID']), mysql_real_escape_string($studentID), mysql_real_escape_string(getTerm()), mysql_real_escape_string(getYear()));
                    $objQuery3 = mysql_query($strSQL);
                    if ($objQuery3 && mysql_num_rows($objQuery3) > 0) {
                        while ($row3 = mysql_fetch_array($objQuery3)) {
                            $sumScore += $row3['score'];
                        }
                    }
                }
                if ($confUserType == 'instructor') {
                    $preData['score'] = $sumScore . '/' . $maxScore;
                }
                $data['data'][] = $preData;
            } else {
                $preData['score'] = '--';
                $data['data'][] = $preData;
            }
开发者ID:nextinfos,项目名称:htdocs,代码行数:31,代码来源:stuReport.php

示例13: strpos

 //Fehler wegen ->undefinded property stdclass->trackname
 $posdir = strpos($itunes[$i]->artistName, getDirector($row));
 //echo $posdir;
 if (getDirector($row) === $itunes[$i]->artistName && $row[5] === $itunes[$i]->trackName) {
     $rows = $i;
     $available = 1;
     echo "1";
     break;
 }
 if (getDirector($row) === $itunes[$i]->artistName) {
     $rows = $i;
     $available = 1;
     echo "2";
     break;
 }
 if ($posdir !== -1 && $pos !== -1 && $itunesyear === getYear($row) && getDirector($row) === $itunes[$i]->artistName) {
     $rows = $i;
     $available = 1;
     echo "3";
     break;
 }
 //            if ($pos !== false) {
 //                $row = $i;
 //                $available = 1;
 //                echo "4";
 //                break;
 //            }
 //            if ($itunesyear === $year) {
 //                $rows = $i;
 //                $available = 1;
 //                //echo "4";
开发者ID:roseblumentopf,项目名称:mywatchlst,代码行数:31,代码来源:services_data.php

示例14: copyrightLink

function copyrightLink($footer)
{
    ?>
	<a href="<?php 
    echo HOME_URL;
    ?>
">©<?php 
    echo getYear();
    ?>
 <?php 
    echo getDomain();
    ?>
 – All Rights Reserved</a>
<?php 
}
开发者ID:phn007,项目名称:MyTools,代码行数:15,代码来源:main.php

示例15: mysql_query

mysql_query("SET character_set_client=utf8");
mysql_query("SET character_set_connection=utf8");
$task = '';
if (isset($_POST['action'])) {
    $task = $_POST['action'];
} else {
    if (isset($_GET['action'])) {
        $task = $_GET['action'];
    }
}
switch ($task) {
    case 'getCountryName':
        getCountryName($conn);
        break;
    case 'getYear':
        getYear($conn);
        break;
    case "getMonthList":
        getMonthList($conn);
        break;
    case 'getItemGroup':
        getItemGroup($conn);
        break;
    case 'getItemList':
        getItemList($conn);
        break;
    case 'getShipmentStatus':
        getShipmentStatus($conn);
        break;
    case "getFundingSource":
        getFundingSource($conn);
开发者ID:sankam-nikolya,项目名称:lptt,代码行数:31,代码来源:t_combo.php


注:本文中的getYear函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。