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


PHP camp_html_select_option函数代码示例

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


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

示例1: putGS

<?php 
}
?>
<tr>
    <td align="left" width="400px">
        <?php 
putGS("Map Marker Default:");
?>
    </td>
    <td align="left" valign="top">
<?php 
$marker_icons = Geo_Preferences::GetIconsFiles();
if (0 < count($marker_icons)) {
    echo '<select name="f_map_marker_source_default" class="input_select">' . "\n";
    foreach ($marker_icons as $one_icon) {
        camp_html_select_option($one_icon, SystemPref::Get('MapMarkerSourceDefault'), $one_icon);
    }
    echo "</select>\n";
} else {
    ?>
        <input type="text" name="f_map_marker_source_default" value="<?php 
    p(SystemPref::Get('MapMarkerSourceDefault'));
    ?>
" maxlength="80" size="40" class="input_text" />
<?php 
}
?>
    </td>
</tr>
<tr>
    <td colspan="2"><hr /></td>
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例2: foreach

        <tr>
          <td nowrap="nowrap"><label id="pickarticlefrom" for="article">{#campsiteinternallink_dlg.article}</label></td>
          <td id="pickarticlecontainer">
            <select name="NrArticle" id="NrArticle" onchange="this.form.submit();" <?php 
if ($languageId == 0 || $publicationId == 0 || $issueId == 0 || $sectionId == 0) {
    ?>
disabled<?php 
}
?>
>
              <option value="0">?</option>
              <?php 
if ($languageId != 0 && $publicationId != 0 && $issueId != 0 && $sectionId != 0) {
    foreach ($articles as $article) {
        $articleName = substr($article->getTitle(), 0, $maxSelectLength);
        camp_html_select_option($article->getArticleNumber(), $articleId, $articleName);
    }
}
?>
            </select>
          </td>
        </tr>
        <tr>
          <input type="hidden" name="target" id="target" />
          <td class="column1"><label id="targetlistlabel" for="targetlist">{#campsiteinternallink_dlg.target}</label></td>
          <td id="targetlistcontainer">&nbsp;</td>
        </tr>
      </table>
      </fieldset>
    </div>
  </div>
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:link.php

示例3: foreach

							<SELECT NAME="f_field_language_id" class="input_select" alt="select" emsg="<?php 
    echo $translator->trans("You must select a language.");
    ?>
">
							<option value="0"><?php 
    echo $translator->trans("---Select language---");
    ?>
</option>
							<?php 
    foreach ($allLanguages as $tmpLanguage) {
        if ($languageObj->getLanguageId() == $tmpLanguage->getLanguageId()) {
            $selected = true;
        } else {
            $selected = false;
        }
        camp_html_select_option($tmpLanguage->getLanguageId(), $selected, $tmpLanguage->getNativeName());
    }
    ?>
							</SELECT>
		    			</td>
		    			<td><input type="text" name="f_field_translation_name" value="" class="input_text" size="15" alt="blank" emsg="<?php 
    echo $translator->trans('You must enter a name for the field.', array(), 'article_type_fields');
    ?>
"></td>
		    			<td><input type="submit" name="f_submit" value="<?php 
    echo $translator->trans("Translate");
    ?>
" class="button"></td>
		    		</tr>
		    		</table>
		    	</td>
开发者ID:alvsgithub,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例4: if

                }
                ?>
                </SELECT>
            </TD>
        </TR>

        <?php if (!$poll->getProperty('parent_poll_nr')) { ?>
            <TR>
                <TD ALIGN="RIGHT" ><?php  putGS("Number of answers"); ?>:</TD>
                <TD style="padding-top: 3px;">
                    <SELECT NAME="f_nr_of_answers" alt="select" emsg="<?php putGS("You must select number of answers.")?>" class="input_select" onchange="poll_set_nr_of_answers()">
                    <option value="0"><?php putGS("---Select---"); ?></option>
                    <?php
                     for($n=1; $n<=255; $n++) {
                         camp_html_select_option($n,
                                                 $nr_of_answers,
                                                 $n);
                    }
                    ?>
                    </SELECT>
                </TD>
            </TR>
        <?php } ?>

        <?php
        for ($n=1; $n<=255; $n++) {
            ?>
            <tr id="poll_answer_tr_<?php p($n); ?>" style="display: <?php is_array($answers) && array_key_exists($n, $answers) ? p('table-row') : p('none'); ?>">
                <TD ALIGN="RIGHT" ><?php  putGS("Answer $1", $n); ?>:</TD>
                <TD>
                    <INPUT TYPE="TEXT" NAME="f_answer[<?php p($n); ?>]" SIZE="40" MAXLENGTH="255" class="input_text" alt="blank" id="poll_answer_input_<?php p($n); ?>" emsg="<?php putGS('You must fill in the $1 field.', getGS('Answer $1', $n)); ?>" value="<?php isset($answers[$n]) ? p(htmlspecialchars($answers[$n])) : p('__undefined__'); ?>">
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例5: foreach

?>
:</TD>
	<TD>
	<INPUT TYPE="TEXT" class="input_text" NAME="f_country_name" SIZE="32">
	</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT" ><?php 
echo $translator->trans("Language");
?>
:</TD>
	<TD>
		<SELECT NAME="f_country_language" class="input_select">
		<?php 
foreach ($languages as $language) {
    camp_html_select_option($language->getLanguageId(), 0, $language->getNativeName());
}
?>
    	</SELECT>
	</TD>
</TR>
<TR>
	<TD COLSPAN="2">
		<DIV ALIGN="CENTER">
		<INPUT TYPE="submit" class="button" NAME="OK" VALUE="<?php 
echo $translator->trans('Save');
?>
">
		<!--<INPUT TYPE="button" class="button" NAME="Cancel" VALUE="<?php 
echo $translator->trans('Cancel');
?>
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:add.php

示例6: p

            <td>
                <input type="text" name="f_comment_per_page" value="<?php p($f_comment_per_page);?>" size="2" maxlength="4" class="input_text">
            </td>

            <td style="padding-left: 15px;">
                <?php putGS("Search"); ?>: <input type="text" name="f_comment_search" value="<?php p($f_comment_search); ?>" size="15"  class="input_text">
            </td>

            <td style="padding-left: 15px;">
                <select name="f_comment_order_by" class="input_select">
                <?php
                camp_html_select_option("datestamp", $f_comment_order_by, getGS("Date posted"));
                camp_html_select_option("Name", $f_comment_order_by, getGS("Article name"));
                camp_html_select_option("author", $f_comment_order_by, getGS("Author"));
                camp_html_select_option("thread", $f_comment_order_by, getGS("Thread"));
                ?>
                </select>
            </td>

            <td>
               <a href="<?php p($orderDirectionUrl); ?>"><?php p($OrderSign); ?></a>
            </td>
            <td style="padding-left: 15px;">
                <input type="submit" value="<?php putGS("Search"); ?>" class="button">
            </td>

        </tr>
        </table>
        </form>
    </td>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:30,代码来源:index.php

示例7: putGS

        </tr>

        <TR>
        	<TD ALIGN="RIGHT"><?php 
    putGS("Time Unit");
    ?>
:</TD>
        	<TD>
            <SELECT NAME="f_time_unit" class="input_select">
        	<?php 
    $selectedTimeUnit = '';
    if (isset($publicationObj)) {
        $selectedTimeUnit = $publicationObj->getTimeUnit();
    }
    foreach ($timeUnits as $timeUnit) {
        camp_html_select_option($timeUnit->getUnit(), $selectedTimeUnit, $timeUnit->getName());
    }
    ?>
            </SELECT>
        	</TD>
        </TR>
        <tr>
        	<td colspan="2" align="left"><b><?php 
    putGS('Paid subscriptions');
    ?>
</b></td>
        </tr>
        <TR>
        	<TD ALIGN="RIGHT"><?php 
    putGS("Currency");
    ?>
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:pub_form.php

示例8: translationForm


//.........这里部分代码省略.........
    	}
    }

	// Whether to show translated strings or not.
	$hideTranslated = camp_session_get('hide_translated', 'off');

    camp_html_display_msgs();
	?>
	<table>
	<tr>
		<td valign="top"> <!-- Begin top control panel -->

        <form action="index.php" method="post">
		<?php echo SecurityToken::FormParameter(); ?>
        <input type="hidden" name="localizer_lang_id" value="<?php echo $targetLang->getLanguageId(); ?>">
        <input type="hidden" name="search_string" value="<?php echo htmlspecialchars($searchString); ?>">
		<table border="0" cellpadding="0" cellspacing="0" class="box_table">
		<tr>
			<td>
				<table>
				<tr>
					<td>
						<?php putGS('Area to localize'); ?>:
					</td>
				</tr>
				<tr>
					<td>
						<SELECT name="prefix" class="input_select" onchange="this.form.submit();">
						<?PHP
						foreach ($mapPrefixToDisplay as $prefix => $displayStr) {
						    if (!empty($prefix)) {
						        $transl_status[$prefix] = Localizer::GetTranslationStatus($prefix, $localizerTargetLanguage);
						    }
						    camp_html_select_option($prefix, $screenDropDownSelection, $displayStr, $transl_status[$prefix]['untranslated'] ? array('style' => 'color:red') : array());
						}
						?>
						</SELECT>
					</td>
				</tr>
				</table>
			</td>

			<td>
				<table>
				<tr>
					<td>
						<?php putGS('Translate from:'); ?>
					</td>
				</tr>
				<tr>
					<td>
		        		<SELECT NAME="localizer_source_language" onchange="this.form.submit();" class="input_select">
		        		<?php echo LanguageMenu($languages, $localizerSourceLanguage); ?>
		        		</select>
					</td>
				</tr>
				</table>
			</td>

			<td>
				<table>
				<tr>
					<td>
						<?php putGS('Translate to:'); ?>
					</td>
				</tr>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:67,代码来源:translate.php

示例9: camp_html_select_option

?>
" class="input_text" style="width: 150px;"></td>
	<td>
		<table cellpadding="0" cellspacing="0">
		<tr>
			<td>Order by:</td>
			<td>
				<select name="f_order_by" class="input_select" onchange="this.form.submit();">
				<?php 
camp_html_select_option('id', $f_order_by, $translator->trans("Most Recently Added"));
camp_html_select_option('last_modified', $f_order_by, $translator->trans("Most Recently Modified"));
camp_html_select_option('description', $f_order_by, $translator->trans("Description"));
camp_html_select_option('photographer', $f_order_by, $translator->trans("Photographer"));
camp_html_select_option('place', $f_order_by, $translator->trans("Place"));
camp_html_select_option('date', $f_order_by, $translator->trans("Date"));
camp_html_select_option('inuse', $f_order_by, $translator->trans("In use"));
?>
				</select>
			</td>
			<td>
                <a href="/<?php 
echo $ADMIN;
?>
/articles/images/popup.php?f_language_id=<?php 
p($f_language_id);
?>
&f_language_selected=<?php 
p($f_language_selected);
?>
&f_article_number=<?php 
p($f_article_number);
开发者ID:sourcefabric,项目名称:newscoop,代码行数:31,代码来源:search.php

示例10: putGS

		</TR>

		<TR>
			<TD ALIGN="RIGHT"><?php 
        putGS("Article Template");
        ?>
:</TD>
			<TD>
				<SELECT ID="f_article_template_id" NAME="f_article_template_id" class="input_select">
				<OPTION VALUE="0">&lt;<?php 
        putGS("default");
        ?>
&gt;</OPTION>
				<?php 
        foreach ($allTemplates as $template) {
            camp_html_select_option($template->getPath(), $tplArticlePath, $template->getName());
        }
        ?>
				</SELECT>
			</TD>
		</TR>
		<?php 
    } else {
        ?>
		<TR>
			<INPUT TYPE="hidden" NAME="f_theme_id" VALUE="0"/>
			<INPUT TYPE="hidden" NAME="f_issue_template_id" VALUE="0"/>
			<INPUT TYPE="hidden" NAME="f_section_template_id" VALUE="0"/>
			<INPUT TYPE="hidden" NAME="f_article_template_id" VALUE="0"/>
			<TD ALIGN="LEFT" colspan="2" style="color: red;">
			<?php 
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit.php

示例11: getGS

		camp_html_select_option("starts", $userSearchParameters['subscription_how'], getGS("starts"));
		?>
		</select>
		<select name="subscription_when" class="input_select" style="width: 100px;">
		<?PHP
		camp_html_select_option("before", $userSearchParameters['subscription_when'], getGS("before"));
		camp_html_select_option("after", $userSearchParameters['subscription_when'], getGS("after"));
		camp_html_select_option("on", $userSearchParameters['subscription_when'], getGS("on"));
		?>
		</select>
		<input type="text" name="subscription_date" value="<?php p(htmlspecialchars($userSearchParameters['subscription_date'])); ?>" class="input_text" style="width: 100px;"><span class="info-text">(<?php putGS('YYYY-MM-DD'); ?>)</span><?php putGS("status"); ?>:
		<select name="subscription_status" class="input_select" style="width: 100px;">
		<option value=""></option>
		<?PHP
		camp_html_select_option("active", $userSearchParameters['subscription_status'], getGS("active"));
		camp_html_select_option("inactive", $userSearchParameters['subscription_status'], getGS("inactive"));
		?>
		</select>
</fieldset>

<fieldset>
<legend><?php putGS("IP address"); ?></legend>

		<input type="text" class="input_text" name="startIP1" size="3" maxlength="3" value="<?php if ($userSearchParameters['startIP1'] != 0) echo $userSearchParameters['startIP1']; ?>">.
		<input type="text" class="input_text" name="startIP2" size="3" maxlength="3" value="<?php if ($userSearchParameters['startIP2'] != 0) echo $userSearchParameters['startIP2']; ?>">.
		<input type="text" class="input_text" name="startIP3" size="3" maxlength="3" value="<?php if ($userSearchParameters['startIP3'] != 0) echo $userSearchParameters['startIP3']; ?>">.
		<input type="text" class="input_text" name="startIP4" size="3" maxlength="3" value="<?php if ($userSearchParameters['startIP4'] != 0) echo $userSearchParameters['startIP4']; ?>"><span class="info-text">(<?php putGS("fill in from left to right at least one input box"); ?>)</span>
</fieldset>
<?php } // if ($uType == "Subscribers") ?>

</div>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:index.php

示例12: putGS

        </script>
        <table class="box_table">
        <tr>
            <td align="left" colspan="2">
                <form name="template_load" method="post" action="edit_template.php">
                <?php echo SecurityToken::FormParameter(); ?>
                <table >
                <tr>
                    <td>
                        <b><?php putGS("Edit template:"); ?></b>
                        <select name="f_path_name" class="input_select" onChange="openFile()">
                            <option value="">---</option>
                            <?php
                            foreach ($templates as $template) {
                                if (1 || camp_is_text_file($template->getName())) {
                                    camp_html_select_option('/'.$template->getName(), $f_path.'/'.$f_name, $template->getName());
                                }

                            }
                            ?>
                        </select>
                    </td>
                </tr>
                </table>
                </form>
            </td>
        </tr>
        </table>

       </td>
       <td>
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:edit_template.php

示例13: elseif

    ?>
    </select>
    <?php 
} elseif ($articleObj->userCanModify($g_user) && $articleObj->getWorkflowStatus() != 'Y') {
    ?>
    <select name="f_action_workflow" class="input_select" id="f_action_workflow"
      onchange="return checkChanged() && this.form.submit();" <?php 
    if ($locked) {
        ?>
disabled="disabled"<?php 
    }
    ?>
>
    <?php 
    camp_html_select_option('S', $articleObj->getWorkflowStatus(), getGS('Status') . ': ' . getGS('Submitted'));
    camp_html_select_option('N', $articleObj->getWorkflowStatus(), getGS('Status') . ': ' . getGS('New'));
    ?>
    </select>
    <?php 
} else {
    switch ($articleObj->getWorkflowStatus()) {
        case 'Y':
            echo getGS('Status') . ': ' . getGS('Published');
            break;
        case 'M':
            echo getGS('Status') . ': ' . getGS('Publish with issue');
            break;
        case 'S':
            echo getGS('Status') . ': ' . getGS('Submitted');
            break;
        case 'N':
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit_main_box.php

示例14: putGS

			</tr>
		</table>
	</td>
</tr>
<?php
if ($editUser->isAdmin() && $canManage) {
?>
<input type="hidden" name="customizeRights" id="customize_rights" value="false">
<tr id="user_type_dialog">
	<td style="padding-left: 4px; padding-top: 4px; padding-bottom: 4px;">
		<?php putGS("User Type"); ?>:
		<select name="UserType">
		<option value="">---</option>
		<?php
		foreach ($userTypes as $user_type) {
			camp_html_select_option($user_type->getId(), $my_user_type, $user_type->getName());
		}
		?>
		</select>
	</td>
</tr>
<tr id="rights_show_link">
	<td style="padding-left: 6px; padding-top: 6px; padding-right: 6px;">
		<a href="javascript: void(0);" onclick="ToggleRowVisibility('rights_dialog'); ToggleRowVisibility('user_type_dialog'); ToggleRowVisibility('rights_hide_link'); ToggleRowVisibility('rights_show_link'); ToggleBoolValue('customize_rights');">
			<img src="<?php echo $Campsite["ADMIN_IMAGE_BASE_URL"]; ?>/viewmagplus.png" id="my_icon" border="0" align="center">
			<?php putGS("Click here to customize user permissions"); ?>
		</a>
	</td>
</tr>
<tr id="rights_hide_link" style="display: none;">
	<td style="padding-left: 6px; padding-top: 6px; padding-right: 6px;">
开发者ID:nistormihai,项目名称:Newscoop,代码行数:31,代码来源:info.php

示例15: Language

            $currentLanguage = new Language($TOL_Language);
            $currentLanguageId = $currentLanguage->getLanguageId();
            foreach ($subtopics as $topicPath) {
                $printTopic = array();
                foreach ($topicPath as $topicId => $topic) {
                    $translations = $topic->getTranslations();
                    if (array_key_exists($currentLanguageId, $translations)) {
                        $currentTopic = $translations[$currentLanguageId];
                    } elseif ($currentLanguageId != 1 && array_key_exists(1, $translations)) {
                        $currentTopic = $translations[1];
                    } else {
                        $currentTopic = end($translations);
                    }
                    $printTopic[] = $currentTopic;
                }
                camp_html_select_option($topicId, $articleTopicId, implode(" / ", $printTopic));
            }
            ?>
                    </select>
        <?php 
        }
    } elseif ($dbColumn->getType() == ArticleTypeField::TYPE_NUMERIC) {
        ?>
          <li>
            <label><?php 
        echo htmlspecialchars($dbColumn->getDisplayName($articleObj->getLanguageId()));
        ?>
</label>
            <input type="text" class="input_text" size="20" maxlength="20" <?php 
        print $spellcheck;
        ?>
开发者ID:nidzix,项目名称:Newscoop,代码行数:31,代码来源:edit_html.php


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