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


PHP printText函数代码示例

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


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

示例1: addVideo

/**
* Maintenance script to collect video data (local and premium videos) and insert into video_info table
* Note: video data come from embedded premium videos, local videos, and related videos (related videos list and global list)
* Default setting: create video_info table, remove deleted videos (local) and add videos
* @author Liz Lee, Saipetch Kongkatong
*/
function addVideo(&$videoList, $titleName)
{
    global $dryrun, $added, $invalid, $duplicate, $dupInDb;
    $videoInfoHelper = new VideoInfoHelper();
    $videoData = $videoInfoHelper->getVideoDataFromTitle($titleName);
    if (!empty($videoData)) {
        printText($videoData['videoTitle']);
        $titleHash = md5($videoData['videoTitle']);
        if (!in_array($titleHash, $videoList)) {
            $status = true;
            if (!$dryrun) {
                $videoInfo = new VideoInfo($videoData);
                $status = $videoInfo->addVideo();
            }
            if ($status) {
                $added++;
                printText("..... ADDED.\n");
            } else {
                $dupInDb++;
                printText("..... ALREADY ADDED TO DB.\n");
            }
            $videoList[] = $titleHash;
        } else {
            $duplicate++;
            printText("..... ALREADY ADDED.\n");
        }
    } else {
        $invalid++;
        printText("{$titleName}..... INVALID.\n");
    }
}
开发者ID:Tjorriemorrie,项目名称:app,代码行数:37,代码来源:maintenance.php

示例2: printAny

function printAny($text)
{
    if (is_array($text)) {
        printArray($text);
    } else {
        printText($text);
    }
}
开发者ID:the-tool,项目名称:the-tool,代码行数:8,代码来源:index.blade.php

示例3: addDataToVideo

/**
 * add data to video
 * @param array $row
 * @param array $fields
 * @param array $video
 * @return array $video
 */
function addDataToVideo($row, $fields, $video = array())
{
    foreach ($fields as $key => $value) {
        $data = empty($row[$value]) ? '' : $row[$value];
        $video[] = $data;
        printText("\t{$key}: {$data}\n");
    }
    return $video;
}
开发者ID:Tjorriemorrie,项目名称:app,代码行数:16,代码来源:getVideoMetadata.php

示例4: printText

**/
/* define the page class */
$pageClass = "simm";
/* pull in the menu */
if (isset($sessionCrewid)) {
    include_once 'skins/' . $sessionDisplaySkin . '/menu.php';
} else {
    include_once 'skins/' . $skin . '/menu.php';
}
?>

<div class="body">
	<span class="fontTitle">Simm Rules</span>
	<?php 
/*
	if the person is logged in and has level 5 access, display an icon
	that will take them to edit the entry
*/
if (isset($sessionCrewid) && in_array("m_messages", $sessionAccess)) {
    echo "&nbsp;&nbsp;&nbsp;&nbsp;";
    echo "<a href='" . $webLocation . "admin.php?page=manage&sub=messages' class='image'>";
    echo "<img src='" . $webLocation . "images/edit.png' alt='Edit' border='0' />";
    echo "</a>";
}
?>
	<br /><br />
	
	<?php 
printText($rules);
?>
</div>
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:rules.php

示例5: printText

            ?>
	
	<span class="fontMedium"><b><?php 
            printText($newsTitle);
            ?>
</b></span><br />
	<span class="fontSmall">
		Posted by <?php 
            printText($author);
            ?>
 on <?php 
            echo dateFormat("long", $newsPosted);
            ?>
<br />
		Category: <?php 
            printText($catName);
            ?>
	</span><br />
	<div style="padding: 1em 0 3em 1em;">
		<?php 
            printText($newsContent);
            ?>
	</div>
	
	<?php 
        }
    }
}
?>
	
</div>
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:main.php

示例6: printCrewName

				</span><br />
				<span class="fontSmall">
					Posted by <?php 
                printCrewName($newsItems['newsAuthor'], "rank", "link");
                ?>
 on <?php 
                echo dateFormat("long", $newsPosted);
                ?>
<br />
					Category: <?php 
                printText($catName);
                ?>
				</span><br />
				<div style="padding: .5em 0em 2em 1em;">
					<?php 
                printText($text);
                echo " ... <nobr>[ <a href='" . $webLocation . "index.php?page=news&id=" . $newsid . "'>Read More &raquo;</a> ]</nobr>";
                ?>
				</div>
			
			<?php 
            }
            /* close the while loop */
        }
        /* close the count check */
        ?>
		</div>
		<?php 
    }
    ?>
		
开发者ID:anodyne,项目名称:sms,代码行数:30,代码来源:main.php

示例7: foreach

?>
		</div> <!-- close TWO -->
		
		<div id="three" class="ui-tabs-container ui-tabs-hide">
			<?php 
if (count($missions['completed']) < 1) {
    ?>
				<strong class='orange fontMedium'>No completed missions</strong>
			<?php 
} else {
    ?>
				<?php 
    foreach ($missions['completed'] as $key => $value) {
        echo "<a href='" . $webLocation . "index.php?page=mission&id=" . $value['id'] . "'><strong class='fontMedium'>";
        printText($value['title']);
        echo "</strong></a>";
        if ($usePosting == "y") {
            echo "&nbsp;&nbsp; [ Posts: " . $value['count'] . " ]";
        }
        echo "<div style='padding: 1em 0 2em 1em;'>";
        printText($value['desc']);
        echo "</div>";
    }
    ?>
			<?php 
}
?>
		</div> <!-- close THREE -->
	</div> <!-- close CONTENT -->
	
</div> <!-- Close .body -->
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:missions.php

示例8: foreach

				<?php 
    } else {
        ?>
					<table>
						<?php 
        foreach ($mission_array['completed'] as $row) {
            ?>
							
						<form method="post" action="<?php 
            echo $webLocation;
            ?>
admin.php?page=manage&sub=summaries&t=3">
						<tr>
							<td class="tableCellLabel">
								<?php 
            printText($row['title']);
            ?>
								<input type="hidden" name="missionid" value="<?php 
            echo $row['id'];
            ?>
" />
							</td>
							<td>&nbsp;</td>
							<td>
								<textarea name="missionSummary" rows="15" class="wideTextArea"><?php 
            echo stripslashes($row['summary']);
            ?>
</textarea>
							</td>
						</tr>
						<tr>
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:summaries.php

示例9: mysql_query

    }
    if ($missionCount == 0) {
        echo "<b>Please create a mission before posting!</b>";
    } else {
        $missions = "SELECT missionid, missionTitle, missionStatus FROM sms_missions WHERE ";
        $missions .= "missionStatus != 'upcoming'";
        $missionsResult = mysql_query($missions);
        echo "<select name='postMission'>";
        while ($missionArray = mysql_fetch_array($missionsResult)) {
            extract($missionArray, EXTR_OVERWRITE);
            echo "<option value='" . $missionid . "'";
            if ($missionStatus == "current") {
                echo " selected ";
            }
            echo ">";
            printText($missionTitle);
            echo "</option>";
        }
        echo "</select>";
    }
    ?>
				</td>
			</tr>
			<tr>
				<td colspan="3" height="10"></td>
			</tr>
			<tr>
				<td class="narrowLabel tableCellLabel">Title</td>
				<td>&nbsp;</td>
				<td><input type="text" class="name" name="postTitle" style="font-weight:bold;" length="100" /></td>
			</tr>
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:addjp.php

示例10: printText

						<img src="images/combadge-npc.png" border="0" alt="[ View Bio ]" />
					</a>
				</td>
			</tr>
	
		<?php 
            }
            /* close the NPC for loop */
        }
        /* close the if( $n_num_row ) logic */
        if ($p_open > "0" && $d_type == "playing") {
            ?>
	
			<tr class="open" style="display:none">
				<td width="35%" valign="middle" style="padding-left: 1em;"><?php 
            printText($p_position);
            ?>
</td>
				<td width="15%" valign="middle" align="right">
					<img src="<?php 
            echo $webLocation;
            ?>
images/ranks/<?php 
            echo $rankSet;
            ?>
/blank.png" />
				</td>
				<td width="40%" valign="middle">
					<span class="fontSmall">
						<a href="<?php 
            echo $webLocation;
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:manifest.php

示例11: printMissionTitle

?>

<div class="body">
	<span class="fontTitle">
		Mission Notes - <i><?php 
echo printMissionTitle($notes[0]);
?>
</i>
		
		<?php 
if (in_array("m_missionnotes", $sessionAccess)) {
    ?>
		&nbsp;
		<a href="<?php 
    echo $webLocation;
    ?>
admin.php?page=manage&sub=missionnotes">
			<img src="<?php 
    echo $webLocation;
    ?>
images/edit.png" border="0" alt="[ Edit ]" />
		</a>
		<?php 
}
?>
		
	</span><br /><br />
	<?php 
printText($notes[1]);
?>
</div>
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:notes.php

示例12: while

        $missions = FALSE;
        while ($titleArray = mysql_fetch_array($missionTitleResult)) {
            extract($titleArray, EXTR_OVERWRITE);
            $missions[] = array('id' => $missionid, 'title' => $missionTitle);
        }
        if (count($missions) == 0) {
            echo "<b>You must <a href='" . $webLocation . "admin.php?page=manage&sub=missions'>create a mission</a> before posting!</b>";
        } elseif (count($missions) > 1) {
            echo "<select name='postMission'>";
            foreach ($missions as $k => $v) {
                echo "<option value='" . $v['id'] . "'>" . $v['title'] . "</option>";
            }
            echo "</select>";
        } else {
            echo "<a href='" . $webLocation . "index.php?page=mission&id=" . $missions[0]['id'] . "'>";
            printText($missions[0]['title']);
            echo "</a>";
            echo "<input type='hidden' name='postMission' value='" . $missions[0]['id'] . "' />";
        }
        ?>
				</td>
			</tr>
			<tr>
				<td class="narrowLabel tableCellLabel">Title</td>
				<td>&nbsp;</td>
				<td><input type="text" class="name" name="postTitle" style="font-weight:bold;" length="100" /></td>
			</tr>
			<tr>
				<td class="narrowLabel tableCellLabel">Location</td>
				<td>&nbsp;</td>
				<td><input type="text" class="name" name="postLocation" style="font-weight:bold;" length="100" /></td>
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:jp.php

示例13: printText

	<h3><?php 
    printText($pendingArray['dockingShipName'] . " " . $pendingArray['dockingShipRegistry']);
    ?>
</h3>
	<h4><?php 
    printText($pendingArray['dockingShipCO']);
    ?>
</h4>
	
	<div class="overflow">
		<strong>Duration:</strong> <?php 
    printText($pendingArray['dockingDuration']);
    ?>
</strong><br /><br />
		<?php 
    printText($pendingArray['dockingDesc']);
    ?>
	</div>
		
	<form method="post" action="">
		<div>
			<input type="hidden" name="action_id" value="<?php 
    echo $pendingArray['dockid'];
    ?>
" />
			<input type="hidden" name="action_type" value="delete" />
			<input type="hidden" name="action_tab" value="<?php 
    echo $tab_action;
    ?>
" />
	
开发者ID:anodyne,项目名称:sms,代码行数:30,代码来源:docking_delete.php

示例14: printText

</td>
		</tr>
		<?php 
}
if ($hasFighters == "y") {
    ?>
		<tr>
			<td class="tableCellLabel">Fighters</td>
			<td>&nbsp;</td>
			<td><?php 
    printText($fighters);
    ?>
</td>
		</tr>
		<?php 
}
if ($hasTransports == "y") {
    ?>
		<tr>
			<td class="tableCellLabel">Transports</td>
			<td>&nbsp;</td>
			<td><?php 
    printText($transports);
    ?>
</td>
		</tr>
		<?php 
}
?>
	</table>
</div> <!-- close the div id content tag -->
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:specifications.php

示例15: printText

    echo "&nbsp;&nbsp;&nbsp;&nbsp;";
    echo "<a href='" . $webLocation . "admin.php?page=manage&sub=messages' class='image'>";
    echo "<img src='" . $webLocation . "images/edit.png' alt='Edit' border='0' />";
    echo "</a>";
}
?>
	<br /><br />
	
	<?php 
printText($simmMessage);
?>
	<br /><br />
	
	<p>
		<b><?php 
printText($co);
?>
<br />
		Commanding Officer, <?php 
printText($shipPrefix . " " . $shipName);
?>
<br />
		<?php 
if ($tfMember == "y") {
    echo $tfName . ", ";
}
echo $fleet;
?>
</b>
	</p>
</div>
开发者ID:anodyne,项目名称:sms,代码行数:31,代码来源:simm.php


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