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


PHP Publication::find_by_sql方法代码示例

本文整理汇总了PHP中Publication::find_by_sql方法的典型用法代码示例。如果您正苦于以下问题:PHP Publication::find_by_sql方法的具体用法?PHP Publication::find_by_sql怎么用?PHP Publication::find_by_sql使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Publication的用法示例。


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

示例1:

						</tr>
					';
        $qual_counter++;
    }
}
?>
	            </tbody>
            </table>
                
            <?php 
if ($personal_details['student_status'] == "PGA") {
    ?>
		             
		            	<h4 align="center" class="alert alert-success">Academic Publications</h4>
		    <?php 
    $academic_publication = Publication::find_by_sql("SELECT * FROM academic_publications WHERE applicant_id='" . $applicant_id . "'");
    if (empty($academic_publication)) {
        $no_information = 'No Information Supplied';
        echo '
					<table class="table table-bordered table-hover">
		            	<thead>
		                	<th>S/N</th>
		                    <th>Title Of Publication</th>
		                    <th>Institution</th>
		                    <th>Qualification</th>
		                    <th>Year</th>
		                </thead>
						<tbody>
							<tr>
								<td width="4%"> 1. </td>
								<td width="20%">' . $no_information . '</td>
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:applicant_details.php

示例2: MySQLDatabase

<?php

$database = new MySQLDatabase();
$session = new Session();
$academic_publications = Publication::find_by_sql("SELECT * FROM academic_publications WHERE applicant_id=" . $session->applicant_id);
$other_publications = OtherPublication::find_by_sql("SELECT * FROM otherpublications WHERE applicant_id=" . $session->applicant_id);
?>
<form action="" method="POST" class="publications" >

	<!-- Beginning of Publications -->
	<table class="table table-hover">
	  <caption><h3>Academic Publications</h3></caption>
	  <caption><h4>Thesis, Projects and Publications</h4></caption>
	  <thead>
		<tr>
		  <th>S/N</th>
		  <th>Title</th>
		  <th>Institution</th>
		  <th>Qualifications</th>
		  <th>Date</th>
		</tr>
	  </thead>
      
	  <tbody id="thesis_projects_publication">
      <?php 
if (!empty($academic_publications)) {
    $index = 1;
    foreach ($academic_publications as $academic) {
        $publication_title = 'publication_title_' . $index;
        $publication_inst = 'publication_institution_' . $index;
        $publication_qualification = 'publication_qualification_' . $index;
开发者ID:Ghaji,项目名称:form_application,代码行数:31,代码来源:publications.php


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