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


PHP GetString函数代码示例

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


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

示例1: GetTagDisplayName

function GetTagDisplayName($tagname)
{
    $TagDisplayName;
    switch (strtolower($tagname)) {
        case "img":
            $TagDisplayName = GetString("Image");
            break;
        case "object":
            $TagDisplayName = GetString("ActiveXObject");
            break;
        case "inserttable":
            $TagDisplayName = GetString($tagname);
            break;
        default:
            $TagDisplayName = $tagname;
            break;
    }
    return $TagDisplayName;
}
开发者ID:srinivasans,项目名称:educloud,代码行数:19,代码来源:Tag.Frame.php

示例2: GetString

		<meta http-equiv="Page-Exit" content="blendTrans(Duration=0.1)" />

		<link href="../Themes/<?php 
echo $Theme;
?>
/dialog.css" type="text/css" rel="stylesheet" />

		<!--[if IE]>

			<link href="../Style/IE.css" type="text/css" rel="stylesheet" />

		<![endif]-->

		<title><?php 
echo GetString("NewTemplate");
?>
</title>

	</head>

	<body bgcolor="white">

		<form id="Form1">

			<CE:EDITOR 

					id="OuterEditor" 

					AutoConfigure="Full"
开发者ID:propagit,项目名称:skfest,代码行数:29,代码来源:outereditorfull.php

示例3: GetString

"></div>
			</div>
		</td>
	</tr>
	<tr class="split">
		<td colspan="2"></td>
	</tr>
	<tr>
		<td class="label"><?php 
echo $Module->getLanguage('postWrite/title');
?>
</td>
		<td class="input">
			<div class="inputBlock">
				<input type="text" name="title" class="inputControl"<?php 
echo $post !== null ? ' value="' . GetString($post->title, 'input') . '"' : '';
?>
 required>
				<div class="helpBlock" data-default="<?php 
echo $Module->getLanguage('youtube/help/title/default');
?>
" data-error="<?php 
echo $Module->getLanguage('youtube/help/title/error');
?>
"></div>
			</div>
		</td>
	</tr>
	<tr class="split">
		<td colspan="2"></td>
	</tr>
开发者ID:JRevirthuum,项目名称:iModule,代码行数:31,代码来源:write.youtube.php

示例4: GetString

					    </a>
					</td>
				</tr>
				<tr>
					<td>					    			    
					    <a href="###" class="codebutton" onclick="codeCleaner('span');">					
					        <img src="../Images/spanend.gif" title="<?php 
echo GetString("CleanupSpan");
?>
" style="border:0;vertical-align:middle;" />
							<?php 
echo GetString("CleanupSpan");
?>
 
					    </a>
					</td>
				</tr>
			</table>
			<br>
			<div id="container-bottom">
				<input type="button" value="<?php 
echo GetString("Cancel");
?>
" class="formbutton" onclick="Close()" ID="Button1" NAME="Button1">
			</div>					
		</div>
	</body>
	<script type="text/javascript" src="../Scripts/Dialog/DialogFoot.js"></script>
	<script type="text/javascript" src="../Scripts/Dialog/Dialog_Clean.js"></script>
</html>
开发者ID:propagit,项目名称:skfest,代码行数:30,代码来源:Clean.php

示例5: error_reporting

<?php

error_reporting(E_ALL ^ E_NOTICE);
include_once "Include_Security.php";
$FrameSrc = "Tag.Frame.php";
if ($_SERVER["QUERY_STRING"] != "") {
    $FrameSrc = $FrameSrc . "?" . $_SERVER["QUERY_STRING"];
}
?>
<html>
	<head>
		<title><?php 
echo GetString("Properties");
?>
</title>		
	</head>
	<script>
	window.changed=false;
	top.returnValue=false;
	</script>
	<body style="margin:0px;padding:0px;border-width:0px;overflow:hidden;" scroll="no">
		<iframe id='frame' frameborder='0' style='width:100%;height:100%;' src='<?php 
echo $FrameSrc;
?>
'></iframe>
	</body>
</html>
开发者ID:propagit,项目名称:skfest,代码行数:27,代码来源:Tag.php

示例6: GetString

<div id="outer"><div id="div_demo"><?php 
echo GetString("DemoText");
?>
</div></div>

<script type="text/javascript">



function UpdateState()

{

	div_demo.style.cssText=element.style.cssText;

}



function SyncToView()

{

	

}

function SyncTo(element)

{
开发者ID:propagit,项目名称:skfest,代码行数:30,代码来源:tag__template.php

示例7: GetString

<fieldset><legend><?php 
echo GetString("Src");
?>
</legend>

	<input type="text" id="inp_src" style="width:320px" /><button id="btnbrowse"><?php 
echo GetString("Browse");
?>
</button>

</fieldset>

<fieldset style="height:180px;width:270px;overflow:hidden;"><legend><?php 
echo GetString("Demo");
?>
</legend>

	<img id="img_demo" src="" alt="" />

</fieldset>



<script type="text/javascript" src="../Scripts/Dialog/Dialog_Tag_Media.js"></script>

开发者ID:propagit,项目名称:skfest,代码行数:24,代码来源:tag_media.php

示例8: ParseManifest

 function ParseManifest($cc, $manifest)
 {
     LogInfo("Processing manifest info....");
     $xml = $this->GetManifest($cc, $manifest);
     $baseUrl = $xml->xpath("/ns:manifest/ns:baseURL");
     if (isset($baseUrl[0])) {
         $baseUrl = GetString($baseUrl[0]);
         if (substr($baseUrl, -1) != "/") {
             $baseUrl .= "/";
         }
     } else {
         $baseUrl = "";
     }
     $url = $xml->xpath("/ns:manifest/ns:media[@*]");
     if (isset($url[0]['href'])) {
         foreach ($url as $manifest) {
             $bitrate = (int) $manifest['bitrate'];
             $entry =& $manifests[$bitrate];
             $entry['bitrate'] = $bitrate;
             $href = GetString($manifest['href']);
             if (substr($href, 0, 1) == "/") {
                 $href = substr($href, 1);
             }
             $entry['url'] = NormalizePath($baseUrl . $href);
             $entry['xml'] = $this->GetManifest($cc, $entry['url']);
         }
     } else {
         $manifests[0]['bitrate'] = 0;
         $manifests[0]['url'] = $manifest;
         $manifests[0]['xml'] = $xml;
     }
     foreach ($manifests as $manifest) {
         $xml = $manifest['xml'];
         // Extract baseUrl from manifest url
         $baseUrl = $xml->xpath("/ns:manifest/ns:baseURL");
         if (isset($baseUrl[0])) {
             $baseUrl = GetString($baseUrl[0]);
             if (substr($baseUrl, -1) == "/") {
                 $baseUrl = substr($baseUrl, 0, -1);
             }
         } else {
             $baseUrl = $manifest['url'];
             if (strpos($baseUrl, '?') !== false) {
                 $baseUrl = substr($baseUrl, 0, strpos($baseUrl, '?'));
             }
             $baseUrl = substr($baseUrl, 0, strrpos($baseUrl, '/'));
         }
         if (!isHttpUrl($baseUrl)) {
             LogError("Provided manifest is not a valid HDS manifest");
         }
         $streams = $xml->xpath("/ns:manifest/ns:media");
         foreach ($streams as $stream) {
             $array = array();
             foreach ($stream->attributes() as $k => $v) {
                 $array[strtolower($k)] = GetString($v);
             }
             $array['metadata'] = GetString($stream->{'metadata'});
             $stream = $array;
             $bitrate = isset($stream['bitrate']) ? (int) $stream['bitrate'] : $manifest['bitrate'];
             $streamId = isset($stream[strtolower('streamId')]) ? $stream[strtolower('streamId')] : "";
             $mediaEntry =& $this->media[$bitrate];
             $mediaEntry['baseUrl'] = $baseUrl;
             if (substr($stream['url'], 0, 1) == "/") {
                 $mediaEntry['url'] = substr($stream['url'], 1);
             } else {
                 $mediaEntry['url'] = $stream['url'];
             }
             if (isset($stream[strtolower('bootstrapInfoId')])) {
                 $bootstrap = $xml->xpath("/ns:manifest/ns:bootstrapInfo[@id='" . $stream[strtolower('bootstrapInfoId')] . "']");
             } else {
                 $bootstrap = $xml->xpath("/ns:manifest/ns:bootstrapInfo");
             }
             if (isset($bootstrap[0]['url'])) {
                 $bootstrapUrl = GetString($bootstrap[0]['url']);
                 if (!isHttpUrl($bootstrapUrl)) {
                     $bootstrapUrl = $mediaEntry['baseUrl'] . "/{$bootstrapUrl}";
                 }
                 $mediaEntry['bootstrapUrl'] = NormalizePath($bootstrapUrl);
                 if ($cc->get($mediaEntry['bootstrapUrl']) != 200) {
                     LogError("Failed to get bootstrap info");
                 }
                 $mediaEntry['bootstrap'] = $cc->response;
             } else {
                 $mediaEntry['bootstrap'] = base64_decode(GetString($bootstrap[0]));
             }
             if (isset($stream['metadata'])) {
                 $mediaEntry['metadata'] = base64_decode($stream['metadata']);
             } else {
                 $mediaEntry['metadata'] = "";
             }
         }
     }
     // Available qualities
     $bitrates = array();
     if (!count($this->media)) {
         LogError("No media entry found");
     }
     krsort($this->media, SORT_NUMERIC);
     LogDebug("Manifest Entries:\n");
     LogDebug(sprintf(" %-8s%s", "Bitrate", "URL"));
//.........这里部分代码省略.........
开发者ID:khoukhir,项目名称:divingmules-repo,代码行数:101,代码来源:AdobeHDS.php

示例9: GetString

 :</td>
			<td>
				<textarea id="inp_tooltip" rows="3" cols="20" style="width:320px"></textarea>
			</td>
		</tr>
	</table>
</fieldset>
<script type="text/javascript" >
	    var Caption = "<?php 
echo GetString("Caption");
?>
";
	    var Delete = "<?php 
echo GetString("Delete");
?>
";
	    var Insert = "<?php 
echo GetString("Insert");
?>
";
	    var Edit = "<?php 
echo GetString("Edit");
?>
";
	    var ValidID = "<?php 
echo GetString("ValidID");
?>
";
</script>
<script type="text/javascript" src="../Scripts/Dialog/Dialog_Tag_Table.js"></script>
开发者ID:srinivasans,项目名称:educloud,代码行数:30,代码来源:tag_table.php

示例10: doProcess


//.........这里部分代码省略.........
             if (count($values->options->names) == 0 || count($values->options->selects) == 0) {
                 $errors['options'] = $this->getLanguage('seller/item/post/help/options/error');
             }
             for ($i = 0, $loop = count($values->options->selects); $i < $loop; $i++) {
                 if (is_numeric($values->options->selects[$i]->ea) == false || is_numeric($values->options->selects[$i]->price) == false) {
                     $errors['options'] = $this->getLanguage('seller/item/post/help/options/numberOnly');
                     break;
                 }
             }
         } else {
             $values->ea = strlen(Request('ea')) > 0 ? Request('ea') : -1;
             $values->options = new stdClass();
             $values->options->names = '';
             $values->options->selects = array();
         }
         if ($this->IM->getModule('member')->isLogged() == false) {
             $results->success = false;
             $results->message = $this->getLanguage('error/notLogged');
         } elseif (count($errors) == 0) {
             $insert = array();
             $insert['title'] = $values->title;
             $insert['detail'] = $values->detail;
             $insert['seller'] = $values->seller;
             $insert['homepage'] = $values->homepage;
             $insert['category1'] = $values->category1;
             $insert['category2'] = $values->category2;
             $insert['category3'] = $values->category3;
             $insert['brand'] = $values->brand;
             $insert['maker'] = $values->maker;
             $insert['model'] = $values->model;
             $insert['price'] = $values->price;
             $insert['allow_youth'] = $values->allow_youth;
             $insert['content'] = $values->content;
             $insert['search'] = GetString($values->content, 'index');
             $insert['image_default'] = $values->image_default;
             $insert['options'] = json_encode($values->options->names, JSON_UNESCAPED_UNICODE);
             if ($values->idx == null) {
                 $insert['midx'] = $this->IM->getModule('member')->getLogged();
                 $insert['reg_date'] = time();
                 $values->idx = $this->db()->insert($this->table->item, $insert)->execute();
                 $results->success = true;
             }
             if ($results->success == true) {
                 for ($i = 0, $loop = count($values->attachments); $i < $loop; $i++) {
                     if ($this->db()->select($this->table->attachment)->where('idx', $values->attachments[$i])->count() == 0) {
                         $this->db()->insert($this->table->attachment, array('idx' => $values->attachments[$i], 'type' => 'ITEMDETAIL', 'parent' => $values->idx))->execute();
                     }
                 }
                 for ($i = 0, $loop = count($values->image_addition); $i < $loop; $i++) {
                     if ($this->db()->select($this->table->attachment)->where('idx', $values->image_addition[$i])->count() == 0) {
                         $this->db()->insert($this->table->attachment, array('idx' => $values->image_addition[$i], 'type' => 'ITEM', 'parent' => $values->idx))->execute();
                     }
                 }
                 $this->db()->delete($this->table->item_option)->where('idx', $values->idx)->execute();
                 if ($values->option_enable == true) {
                     for ($i = 0, $loop = count($values->options->selects); $i < $loop; $i++) {
                         $option = array();
                         $option['idx'] = $values->idx;
                         $option['option1'] = $values->options->selects[$i]->option1;
                         $option['option2'] = $values->options->selects[$i]->option2 == null ? '' : $values->options->selects[$i]->option2;
                         $option['option3'] = $values->options->selects[$i]->option3 == null ? '' : $values->options->selects[$i]->option3;
                         $option['price'] = $values->options->selects[$i]->price;
                         $option['ea'] = $values->options->selects[$i]->ea;
                         $option['sort'] = $i;
                         $this->db()->insert($this->table->item_option, $option)->execute();
                     }
开发者ID:JRevirthuum,项目名称:iModule,代码行数:67,代码来源:ModuleShop.class.php

示例11: doProcess

 function doProcess($action)
 {
     $results = new stdClass();
     $values = new stdClass();
     if ($action == 'listUrl') {
         $menu = Request('menu');
         $page = Request('page');
         $page = $this->IM->getPages($menu, $page);
         $oKeyword = Request('oKeyword');
         $oLabel = Request('oLabel');
         $oSort = Request('oSort');
         $keyword = Request('keyword');
         $label = Request('label');
         $sort = Request('sort');
         $keyword = Request('keyword');
         $p = Request('p') ? Request('p') : 1;
         $queryString = 'menu=' . $page->menu . '&page=' . $page->page . '&keyword=' . $keyword . '&label=' . $label . '&sort=' . $sort . '&p=' . $p;
         if ($oKeyword != $keyword || $oLabel != $label || $oSort != $sort) {
             $p = 1;
         }
         $default = array();
         if ($sort == 'idx') {
             $default['sort'] = '';
         }
         if (isset($page->context->config->label) == true && $page->context->config->label == $label) {
             $default['label'] = '';
         }
         $url = $this->IM->getUrl($page->menu, $page->page, 'list', $p) . $this->IM->getQueryString($default, $queryString);
         $results->success = true;
         $results->url = $url;
     }
     if ($action == 'postWrite') {
         $values->errors = array();
         $values->qid = Request('qid');
         $values->qna = $this->getQna($values->qid);
         $values->menu = Request('menu');
         $values->page = Request('page');
         $values->title = Request('title') ? Request('title') : ($values->errors['title'] = $this->getLanguage('postWrite/help/title/error'));
         $values->content = Request('content') ? Request('content') : ($values->errors['content'] = $this->getLanguage('postWrite/help/content/error'));
         if (strlen(Request('point')) > 0 && Request('point') != '0') {
             $values->point = preg_match('/^[1-9]+[0-9]*$/', Request('point')) == true ? Request('point') : ($values->errors['point'] = $this->getLanguage('postWrite/help/point/error'));
         } else {
             $values->point = 0;
         }
         $values->attachments = is_array(Request('attachments')) == true ? Request('attachments') : array();
         for ($i = 0, $loop = count($values->attachments); $i < $loop; $i++) {
             $values->attachments[$i] = Decoder($values->attachments[$i]);
         }
         $values->content = $this->encodeContent($values->content, $values->attachments);
         if ($values->qna->use_label != 'NONE') {
             $values->labels = is_array(Request('labels')) == true ? Request('labels') : array();
             if ($values->qna->use_label == 'FORCE' && count($values->labels) == 0) {
                 $values->errors['labels'] = $this->getLanguage('postWrite/help/labels/error');
             }
         } else {
             $values->labels = array();
         }
         $this->IM->fireEvent('beforeDoProcess', 'qna', $action, $values, null);
         if ($this->IM->getModule('member')->isLogged() == false) {
             $results->success = false;
             $results->message = $this->getLanguage('error/notLogged');
         } else {
             if ($values->point > $this->IM->getModule('member')->getMember()->point) {
                 $values->errors['point'] = $this->getLanguage('error/notEnoughPoint');
             }
             if (empty($values->errors) == true) {
                 $results->success = true;
                 $mHash = new Hash();
                 $insert = array();
                 $insert['qid'] = $values->qid;
                 $insert['type'] = 'QUESTION';
                 $insert['midx'] = $this->IM->getModule('member')->getLogged();
                 $insert['title'] = $values->title;
                 $insert['content'] = $values->content;
                 $insert['search'] = GetString($values->content, 'index');
                 $insert['point'] = $values->point;
                 if ($this->checkPermission('write') == false) {
                     $results->success = false;
                     $results->message = $this->getLanguage('error/forbidden');
                 } else {
                     $results->success == true;
                     $reg_date = time();
                     $insert['reg_date'] = $reg_date;
                     $insert['last_answer'] = $reg_date;
                     $insert['ip'] = $_SERVER['REMOTE_ADDR'];
                     $values->idx = $this->db()->insert($this->table->post, $insert)->execute();
                     $this->db()->update($this->table->post, array('parent' => $values->idx))->where('idx', $values->idx)->execute();
                     $this->IM->getModule('member')->sendPoint(null, $values->point, 'qna', 'give', array('idx' => $values->idx));
                     $this->IM->getModule('member')->sendPoint(null, $values->qna->post_point, 'qna', 'post', array('idx' => $values->idx));
                     $this->IM->getModule('member')->addActivity(null, $values->qna->post_exp, 'qna', 'post', array('idx' => $values->idx));
                 }
                 if ($results->success == true) {
                     for ($i = 0, $loop = count($values->attachments); $i < $loop; $i++) {
                         if ($this->db()->select($this->table->attachment)->where('idx', $values->attachments[$i])->count() == 0) {
                             $this->db()->insert($this->table->attachment, array('idx' => $values->attachments[$i], 'qid' => $values->qid, 'type' => 'POST', 'parent' => $values->idx))->execute();
                         }
                         $this->IM->getModule('attachment')->filePublish($values->attachments[$i]);
                     }
                     if (count($values->labels) > 0) {
                         for ($i = 0, $loop = count($values->labels); $i < $loop; $i++) {
//.........这里部分代码省略.........
开发者ID:JRevirthuum,项目名称:iModule,代码行数:101,代码来源:ModuleQna.class.php

示例12: ParsePlayer

 public function ParsePlayer($fileName)
 {
     $data = file_get_contents($fileName);
     if (!$fileName) {
         return false;
     }
     $this->Id = $this->GetId($data)[1];
     $this->SteamId = $this->GetSteamId($data);
     $this->SteamName = utf8_encode(GetString($data, 'PlayerName'));
     if (empty(trim(GetString($data, 'PlayerCharacterName')))) {
         $this->CharacterName = "Survivor";
     } else {
         $this->CharacterName = GetString($data, 'PlayerCharacterName');
     }
     $this->TribeId = GetInt($data, 'TribeID')[1];
     if (strlen((string) $this->TribeId) < 2) {
         $this->TribeId = false;
     }
     $this->Level = GetUInt16($data, 'CharacterStatusComponent_Extra_CharacterLevel') + 1;
     $this->FileCreated = date('m/d/y g:ia', filectime($fileName));
     $this->FileUpdated = date('m/d/y g:ia', filemtime($fileName));
     $this->Online = false;
     return $this;
 }
开发者ID:knightzac19,项目名称:PHP-ArkData,代码行数:24,代码来源:arkdata.php

示例13: GetString

					<tr>
						<td colspan="2"><button class="codebutton" onclick="Move(-1);" id="btnMoveDownItem"><?php 
echo GetString("MoveDown");
?>
</button>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td><select size="6" id="list_options" style="width:130px" onchange="document.getElementById('list_options2').selectedIndex = this.selectedIndex;Select(this);FireUIChanged();"></select></td>
			<td><select size="6" id="list_options2" style="width:130px" onchange="document.getElementById('list_options').selectedIndex = this.selectedIndex;Select(this);FireUIChanged();"></select></td>
		</tr>
		<tr>
			<td><?php 
echo GetString("Color");
?>
:&nbsp;<input autocomplete="off" size="7" type="text" id="inp_item_forecolor" />
			<img alt="" id="inp_item_forecolor_Preview" src="../Images/colorpicker.gif" style="margin-bottom:-2px"/>
			</td>
			<td><?php 
echo GetString("BackColor");
?>
:&nbsp;<input autocomplete="off" size="7" type="text" id="inp_item_backcolor" />
			<img alt="" id="inp_item_backcolor_Preview" src="../Images/colorpicker.gif" style="margin-bottom:-2px"/>
			</td>
		</tr>
	</table>
</fieldset>
<script type="text/javascript" src="../Scripts/Dialog/Dialog_Tag_Select.js"></script>
开发者ID:srinivasans,项目名称:educloud,代码行数:31,代码来源:tag_select.php

示例14: GetString

echo GetString("Height");
?>
:</td>

						<td><input type="text" id="inp_cell_height" style="width:60px" /></td>

					</tr>

					<!-- //TODO: add more cell useful properties here -->

					<tr>

						<td colspan="2" align="center">

							<input type="button" id="btn_cell_editcell" value="<?php 
echo GetString("EditHtml");
?>
" /></td>

					</tr>

				</table>

				<br />

			</td>

			<td>

				<div style="border:1px solid gray;padding:1px;OVERFLOW: auto; HEIGHT: 215px; HEIGHT: 215px; ">
开发者ID:propagit,项目名称:skfest,代码行数:30,代码来源:tag_inserttable.php

示例15: GetString

				<table border="0" cellpadding="4" cellspacing="0" class="normal">
					<tr>
						<td>
							<table border="0" cellpadding="2" cellspacing="0" class="normal">
								<tr>
									<td valign="middle" style="width:60"><?php 
echo GetString("Horizontal");
?>
:</td>
									<td>
									    <input type="text" size="2" value="5" onkeypress="return CancelEventIfNotDigit()" style="WIDTH:80px" id="HSpace" />
								    </td>
								</tr>
								<tr>
									<td valign="middle"><?php 
echo GetString("Vertical");
?>
:</td>
									<td>
									    <input type="text" size="2" name="VSpace" onkeypress="return CancelEventIfNotDigit()" style="WIDTH:80px" id="VSpace" />
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
		<td style="white-space:nowrap; width:5" >&nbsp;</td>
		<td valign="top">
			<div id="outer" style="width:230px; height:251px">
开发者ID:propagit,项目名称:skfest,代码行数:31,代码来源:tag_image.php


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