Exemple #1
0
<?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>
Exemple #2
0
        <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>
Exemple #3
0
							<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>
Exemple #4
0
                }
                ?>
                </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__'); ?>">
Exemple #5
0
?>
:</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');
?>
Exemple #6
0
            <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>
Exemple #7
0
?>
<TR>
	<TD ALIGN="RIGHT">
		<FORM METHOD="GET" ACTION="" NAME="">
		<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="search_dialog">
		<TR>
			<TD><?php 
putGS('Language');
?>
:</TD>
			<TD>
				<SELECT NAME="f_country_language_selected" class="input_select">
				<OPTION></option>
				<?php 
foreach ($languages as $language) {
    camp_html_select_option($language->getLanguageId(), $f_country_language_selected, $language->getNativeName());
}
?>
				</SELECT>
			</TD>
			<TD><INPUT TYPE="submit" class="button" NAME="Search" VALUE="<?php 
putGS('Search');
?>
"></TD>
		</TR>
		</TABLE>
		</FORM>
	</TD>
</TR>
</TABLE>
<p>
Exemple #8
0
        </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");
    ?>
Exemple #9
0
/**
 * Creates a form for translation.
 * @param array $p_request
 */
function translationForm($p_request)
{
    global $g_localizerConfig;
	$localizerTargetLanguage = camp_session_get('localizer_target_language', $g_localizerConfig['DEFAULT_LANGUAGE']);
	$localizerSourceLanguage = camp_session_get('localizer_source_language', '');
	if (empty($localizerSourceLanguage)) {
		if (isset($p_request['TOL_Language'])) {
			$lang = $p_request['TOL_Language'];
		} else {
			$lang = $g_localizerConfig['DEFAULT_LANGUAGE'];
		}
		$tmpLanguage = new LocalizerLanguage(null, $lang);
		$localizerSourceLanguage = $tmpLanguage->getLanguageId();
	}

	$prefix = camp_session_get('prefix', '');
	$screenDropDownSelection = $prefix;

	// Load the language files.
	//echo "Prefix: $prefix<br>";
	$sourceLang = new LocalizerLanguage($prefix, $localizerSourceLanguage);
	$targetLang = new LocalizerLanguage($prefix, $localizerTargetLanguage);
	$defaultLang = new LocalizerLanguage($prefix, $g_localizerConfig['DEFAULT_LANGUAGE']);

	$mode = Localizer::GetMode();
	if (!empty($prefix)) {
    	// If the language files do not exist, create them.
        if (!$defaultLang->loadFile($mode)) {
        	$defaultLang->saveFile($mode);
        }
    	if (!$sourceLang->loadFile($mode)) {
    		$sourceLang->saveFile($mode);
    	}
    	if (!$targetLang->loadFile($mode)) {
    		$targetLang->saveFile($mode);
        }

        // Make sure that the languages have the same strings and are in the same
        // order as the default language file.
        $modified = $sourceLang->syncToDefault();
        if ($modified) {
        	$sourceSaveSuccess = $sourceLang->saveFile($mode);
        	camp_html_add_msg($sourceSaveSuccess);
        }
        $modified = $targetLang->syncToDefault();
        if ($modified) {
        	$targetSaveSuccess = $targetLang->saveFile($mode);
        	camp_html_add_msg($targetSaveSuccess);
        }
	}


    $defaultStrings = $defaultLang->getTranslationTable();
    $searchString = camp_session_get('search_string', '');
    if (!empty($searchString)) {
    	$sourceStrings = $sourceLang->search($searchString);
    }
    else {
    	$sourceStrings = $sourceLang->getTranslationTable();
    }
	$targetStrings = $targetLang->getTranslationTable();
	$languages = Localizer::GetAllLanguages($mode);


	$missingStrings = Localizer::FindMissingStrings($prefix);
	$unusedStrings = Localizer::FindUnusedStrings($prefix);

	// Mapping of language prefixes to human-readable strings.
    $mapPrefixToDisplay = array();
    $mapPrefixToDisplay[] = "";
    $mapPrefixToDisplay["globals"] = getGS("Globals");
    $mapPrefixToDisplay["home"] = getGS("Dashboard");
    $mapPrefixToDisplay["api"] = getGS("API");
    $mapPrefixToDisplay["library"] = getGS("Libraries");
    $mapPrefixToDisplay["pub"] = getGS("Publications");
    $mapPrefixToDisplay["issues"] = getGS("Issues");
    $mapPrefixToDisplay["sections"] = getGS("Sections");
    $mapPrefixToDisplay["articles"] = getGS("Articles");
    $mapPrefixToDisplay["article_images"] = getGS("Article Images");
    $mapPrefixToDisplay["article_files"] = getGS("Article Files");
    $mapPrefixToDisplay["article_topics"] = getGS("Article Topics");
    $mapPrefixToDisplay["article_comments"] = getGS("Article Comments");
    $mapPrefixToDisplay["media_archive"] = getGS("Media Archive");
    $mapPrefixToDisplay["geolocation"] = getGS("Geo-location");
    $mapPrefixToDisplay["comments"] = getGS("Comments");
    $mapPrefixToDisplay["system_pref"] = getGS("System Preferences");
    $mapPrefixToDisplay["templates"] = getGS("Templates");
    $mapPrefixToDisplay["article_types"] = getGS("Article Types");
    $mapPrefixToDisplay["article_type_fields"] = getGS("Article Type Fields");
    $mapPrefixToDisplay["topics"] = getGS("Topics");
    $mapPrefixToDisplay["languages"] = getGS("Languages");
    $mapPrefixToDisplay["country"] = getGS("Countries");
    $mapPrefixToDisplay["localizer"] = getGS("Localizer");
    $mapPrefixToDisplay["logs"] = getGS("Logs");
    $mapPrefixToDisplay["users"] = getGS("Users");
    $mapPrefixToDisplay["user_subscriptions"] = getGS("User Subscriptions");
    $mapPrefixToDisplay["user_subscription_sections"] = getGS("User Subscriptions Sections");
    $mapPrefixToDisplay["user_types"] = getGS("Staff User Types");
    $mapPrefixToDisplay["bug_reporting"] = getGS("Bug Reporting");
    $mapPrefixToDisplay["feedback"] = getGS("Feedback");
    $mapPrefixToDisplay["preview"] = getGS("Preview Window");
    $mapPrefixToDisplay["tiny_media_plugin"] = getGS("Editor Media Plugin");
    $mapPrefixToDisplay["plugins"] = getGS("Plugins");
    $mapPrefixToDisplay["extensions"] = getGS("Extensions");
    $mapPrefixToDisplay["authors"] = getGS("Authors");

    foreach (CampPlugin::GetPluginsInfo(true) as $info) {
    	if (array_key_exists('localizer', $info) && is_array($info['localizer'])) {
    		$mapPrefixToDisplay[$info['localizer']['id']] = getGS($info['localizer']['screen_name']);
    	}
    }

	// 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>
				<tr>
					<td>
				        <SELECT NAME="localizer_target_language" onChange="this.form.submit();" class="input_select">
				    	<?php echo LanguageMenu($languages, $localizerTargetLanguage); ?>
				        </select>
					</td>
				</tr>
				</table>
			</td>

			<td>
				<table>
				<tr>
					<td>
						<?php putGS('Translation status:'); ?>
					</td>
				</tr>
				<tr>
					<td>
				        <?php
				        if ($screenDropDownSelection) {
				            $all = $transl_status[$screenDropDownSelection]['all'];
				            $transl = $transl_status[$screenDropDownSelection]['translated'];
				            $untransl = $transl_status[$screenDropDownSelection]['untranslated'];
				        } else {
    				        foreach ($transl_status as $screen) {
    				            $all += $screen['all'];
    				            $transl += $screen['translated'];
    				            $untransl += $screen['untranslated'];
    				        }
				        }
				        if ($all) {
				            putGS("$1 of $2 strings translated", $transl, $all);
				            echo '<br>'.round(100 - 100 / $all * $untransl, 2) . ' %';
				        } else {
				            echo 'N/A';
				        }
				        ?>
					</td>
				</tr>
				</table>
			</td>

		</tr>
		<tr>
			<td align="center" colspan="4">
				<table>
				<tr>
					<td>
						<select name="hide_translated" onChange="this.form.submit();" class="input_select">
						<?php camp_html_select_option('off', $hideTranslated, getGS('Show translated strings')); ?>
						<?php camp_html_select_option('on', $hideTranslated, getGS('Hide translated strings')); ?>
						</select>
					</td>

					<td style="padding-left: 10px;">
						<INPUT type="submit" value="<?php putGS("Submit"); ?>" class="button">
					</td>
				</tr>
				</table>
			</td>
		</tr>
		</table>
        </form>

		</td><!-- End top controls -->
	</tr>

	<!-- Begin search dialog -->
	<tr>
		<td valign="top">
            <form>
            <input type="hidden" name="prefix" value="<?php echo $screenDropDownSelection; ?>">
            <input type="hidden" name="localizer_source_language" value="<?php echo $sourceLang->getLanguageId(); ?>">
            <input type="hidden" name="localizer_target_language" value="<?php echo $targetLang->getLanguageId(); ?>">
			<table border="0" cellspacing="0" cellpadding="0" class="box_table">
			<tr>
				<td width="1%" style="padding-left: 5px;">
					<img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/preview.png">
				</td>

				<td style="padding-left: 10px;">
					<input type="text" name="search_string" value="<?php echo $searchString; ?>" class="input_text" size="50">
				</td>

				<td width="1%" nowrap>
					<input type="button" value="<?php putGS("Search"); ?>" onclick="this.form.submit();" class="button">
				</td>
			</tr>
			</table>
            </form>
		</td>
	</tr>

	<!-- Begin Missing and Unused Strings popups -->
	<tr>
		<td valign="top">

	<?PHP
	if ((count($missingStrings) > 0)  && ($screenDropDownSelection != 'globals')) {
		?>
        <form action="do_add_missing_strings.php" method="post">
		<?php echo SecurityToken::FormParameter(); ?>
        <input type="hidden" name="prefix" value="<?php echo $screenDropDownSelection; ?>">
        <input type="hidden" name="localizer_source_language" value="<?php echo $sourceLang->getLanguageId(); ?>">
        <input type="hidden" name="localizer_target_language" value="<?php echo $targetLang->getLanguageId(); ?>">
        <table border="0" cellspacing="0" cellpadding="0" class="box_table">
		<tr>
			<td>
				<img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/add.png">
			</td>

			<td>
				<?php putGS("The following strings are missing from the translation files:"); ?>
				<div style="overflow: auto; height: 50px; background-color: #EEEEEE; border: 1px solid black; padding-left: 3px;">
				<?PHP
				foreach ($missingStrings as $missingString) {
					echo htmlspecialchars($missingString)."<br>";
				}
				?>
				</div>
			</td>

			<td>
		        <input type="submit" value="<?php putGS("Add"); ?>" class="button">
			</td>
		</tr>
		</table>
        </form>
		<?php
	}

	if ((count($unusedStrings) > 0) && ($screenDropDownSelection != 'globals')) {
		?>
        <form action="do_delete_unused_strings.php" method="post">
		<?php echo SecurityToken::FormParameter(); ?>
        <input type="hidden" name="prefix" value="<?php echo $screenDropDownSelection; ?>">
        <input type="hidden" name="localizer_source_language" value="<?php echo $sourceLang->getLanguageId(); ?>">
        <input type="hidden" name="localizer_target_language" value="<?php echo $targetLang->getLanguageId(); ?>">
        <table border="0" cellspacing="0" cellpadding="0" class="box_table">
		<tr>
			<td>
				<img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/delete.png">
			</td>

			<td>
				<?php putGS("The following strings are not used:"); ?>
				<div style="overflow: auto; height: 50px; background-color: #EEEEEE; border: 1px solid black; padding-left: 3px;">
				<?PHP
				foreach ($unusedStrings as $unusedString) {
					echo htmlspecialchars($unusedString)."<br>";
				}
				?>
				</div>
			</td>

			<td>
		        <input type="submit" value="<?php putGS("Delete"); ?>" class="button">
			</td>
		</tr>
		</table>
        </form>
		<?php
	}
	?>
	<!-- Begin translated strings box -->
    <form action="do_save.php" method="post">
	<?php echo SecurityToken::FormParameter(); ?>
    <INPUT TYPE="hidden" name="prefix" value="<?php echo $screenDropDownSelection; ?>">
    <INPUT TYPE="hidden" name="localizer_target_language" value="<?php echo $targetLang->getLanguageId(); ?>">
    <INPUT TYPE="hidden" name="localizer_source_language" value="<?php echo $sourceLang->getLanguageId(); ?>">
    <INPUT TYPE="hidden" name="search_string" value="<?php echo $searchString; ?>">
	<table border="0" cellpadding="0" cellspacing="0" class="box_table">
	<?PHP
	$foundUntranslatedString = false;
	$count = 0;
	foreach ($sourceStrings as $sourceKey => $sourceValue) {
	    if (!empty($targetStrings[$sourceKey])) {
	        $targetValueDisplay = str_replace('"', '&#34;', $targetStrings[$sourceKey]);
	        $targetValueDisplay = str_replace("\\", "\\\\", $targetValueDisplay);
	        $pre  = '';
	        $post = '';
	    } else {
	        $targetValueDisplay = '';
	        $pre    = '<FONT COLOR="red">';
	        $post   = '</FONT>';
	    }

		$sourceKeyDisplay = htmlspecialchars(str_replace("\\", "\\\\", $sourceKey));

		// Dont display translated strings
	    if ($hideTranslated == 'on' && !empty($targetStrings[$sourceKey])) {
	    	?>
	        <input name="data[<?php echo $count; ?>][key]" type="hidden" value="<?php echo $sourceKeyDisplay; ?>">
	        <input name="data[<?php echo $count; ?>][value]" type="hidden" value="<?php echo $targetValueDisplay; ?>">
	        <?php
	    }
	    else {
	    	// Display the interface for translating a string.

	    	$foundUntranslatedString = true;
	    	// Display string
	    	?>
	        <tr>
	        	<td style="padding-top: 7px;" width="500px">
				<?php
            	// If the string exists in the source language, display that
	            if (!empty($sourceValue)) {
	            	?>
	                <b><?php echo $sourceLang->getLanguageId(); ?>:</b> <?php echo $pre.htmlspecialchars(str_replace("\\", "\\\\", $sourceValue)).$post; ?>
	                <?php
	            }
	            // Otherwise, display it in the default language.
	            else {
	            	if (isset($defaultStrings[$sourceKey])) {
	            		$defaultValue = $defaultStrings[$sourceKey];
	            	} else {
	            		$defaultValue = '';
	            	}
	            	?>
	                <b><?php echo $g_localizerConfig['DEFAULT_LANGUAGE']; ?>:</b> <?php echo $pre.$defaultValue.$post; ?>
	                <?php
	            }
				?>
				</td>
			</tr>
			<tr>
				<td>
			        <input name="data[<?php echo $count; ?>][key]" type="hidden" value="<?php echo $sourceKeyDisplay; ?>">
			        <table cellpadding="0" cellspacing="0">
			        <tr>
			             <td style="padding-right: 5px;">
					       <input type="image" src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/save.png" name="save" value="save">
					     </td>
					     <td>
			                 <input name="data[<?php echo $count; ?>][value]" type="text" size="<?php echo $g_localizerConfig['INPUT_SIZE']; ?>" value="<?php echo $targetValueDisplay; ?>" class="input_text">
			             </td>

			   			<?php
            			// default language => can change keys
            	        if ($targetLang->getLanguageId() == $g_localizerConfig['DEFAULT_LANGUAGE']) {
            	            $fileparms = "localizer_target_language=".$targetLang->getLanguageId()
            	           		."&localizer_source_language=".$sourceLang->getLanguageId()
            	            	."&prefix=".urlencode($screenDropDownSelection)
            	            	."&search_string=".urlencode($searchString);

            	            if ($count == 0) {
            	            	// swap last and first entry
            	                $prev = count($sourceStrings)-1;
            	                $next = $count+1;
            	            }
            	            elseif ($count == count($sourceStrings)-1) {
            	            	// swap last and first entry
            	                $prev = $count-1;
            	                $next = 0;
            	            }
            	            else {
            	            	// swap entrys linear
            	            	$prev = $count-1;
            	            	$next = $count+1;
            	            }

            	            $removeLink    = "do_delete_string.php?pos=$count&$fileparms"
            	            	."&string=".urlencode($sourceKey).'&'.SecurityToken::URLParameter();
            	            $moveUpLink    = "do_reorder_string.php?pos1=$count&pos2=$prev&$fileparms&".SecurityToken::URLParameter();
            	            $moveDownLink  = "do_reorder_string.php?pos1=$count&pos2=$next&$fileparms&".SecurityToken::URLParameter();
                			if (empty($searchString)) {
            				?>
            				<td style="padding-left: 3px;">
            	            <a href="<?php echo $moveUpLink; ?>"><img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/up.png" border="0"></a>
            	            </td>
            	           	<td style="padding-left: 3px;">
            	            <a href="<?php echo $moveDownLink; ?>"><img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/down.png" border="0"></a>
                   	        </td>
                   	        <?php
            	            }
            	            ?>
            	            <td style="padding-left: 3px;">
            	            <a href="<?php echo $removeLink; ?>" onClick="return confirm('<?php putGS('Are you sure you want to delete this entry?'); ?>');"><img src="<?php echo $g_localizerConfig['ICONS_DIR']; ?>/delete.png" border="0" vspace="4"></a>
            	            </td>

            	            <td style="padding-left: 5px;" nowrap>
								<SELECT name="change_prefix_<?php echo $count; ?>" class="input_select">
								<?PHP
								foreach ($mapPrefixToDisplay as $prefix => $displayStr) {
									if ($prefix != $screenDropDownSelection) {
										camp_html_select_option($prefix, null, $displayStr);
									}
								}
								?>
								</SELECT>
								<input type="button" name="" value="Move" onclick="location.href='do_string_switch_file.php?string=<?php echo urlencode($sourceKey); ?>&new_prefix='+this.form.change_prefix_<?php echo $count; ?>.options[this.form.change_prefix_<?php echo $count; ?>.selectedIndex].value+'&<?php echo $fileparms; ?>&<?php echo SecurityToken::URLParameter(); ?>';" class="button">
            	            </td>
                            <?php
                	        }
                			?>
			         </tr>
			         </table>
		        </td>

				</tr>
	        <?php
	    }
	    $count++;
	}
	if (count($sourceStrings) <= 0) {
		if (empty($searchString)) {
			?>
			<tr><td align="center" style="padding-top: 10px; font-weight: bold;"><?php putGS("No source strings found.");?> </td></tr>
			<?php
		}
		else {
			?>
			<tr><td align="center" style="padding-top: 10px; font-weight: bold;"><?php putGS("No matches found.");?> </td></tr>
			<?php
		}
	}
	elseif (!$foundUntranslatedString) {
		if (empty($searchString)) {
			?>
			<tr><td align="center" style="padding-top: 10px; font-weight: bold;"><?php putGS("All strings have been translated."); ?></td></tr>
			<?php
		}
		else {
			?>
			<tr><td align="center" style="padding-top: 10px; font-weight: bold;"><?php putGS("No matches found.");?> </td></tr>
			<?php
		}
	}
	?>
	</table>

	<table style="margin-left: 12px; margin-top: 5px;">
	<tr>
		<td>
			<input type="submit" name="save_button" value="<?php putGS('Save'); ?>" class="button">
		</td>
	</tr>
	</table>
	</form>

		</td> <!-- End translate strings box -->
	</tr>
	</table>
	<?php
} // fn translationForm
Exemple #10
0
?>
" 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);
Exemple #11
0
		</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 
Exemple #12
0
		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>
        </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>
Exemple #14
0
    ?>
    </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':
Exemple #15
0
			</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;">
Exemple #16
0
            $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;
        ?>
Exemple #17
0
		<HR NOSHADE SIZE="1" COLOR="BLACK">
	</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT" ><?php  putGS("Name"); ?>:</TD>
	<TD>
	<INPUT TYPE="TEXT" class="input_text" NAME="f_issue_name" SIZE="32" alt="blank" emsg="<?php putGS('You must fill in the $1 field.',"'".getGS('Name')."'"); ?>">
	</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT" ><?php  putGS("Language"); ?>:</TD>
	<TD>
	<SELECT NAME="f_language_id" class="input_select">
	   <?php
            foreach ($allLanguages as $language) {
            	camp_html_select_option($language->getLanguageId(), $publicationObj->getLanguageId(), $language->getNativeName());
            }
        ?>
	</SELECT>
	</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT" ><?php  putGS("Number"); ?>:</TD>
	<TD>
	<INPUT TYPE="TEXT" class="input_text" NAME="f_issue_number" VALUE="<?php p($newIssueId); ?>" SIZE="5" MAXLENGTH="10" alt="number|0|1|1000000000" emsg="<?php putGS("You must input a number greater than 0 into the $1 field.", "'".getGS("Number")."'"); ?>">
	</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT" ><?php  putGS("URL Name"); ?>:</TD>
	<TD>
	<INPUT TYPE="TEXT" class="input_text" NAME="f_url_name" VALUE="<?php p($newIssueId); ?>" SIZE="32"  alt="alnum|1|A|true|false|_" emsg="<?php putGS('The $1 field may only contain letters, digits and underscore (_) character.', "'" . getGS('URL Name') . "'"); ?>">
Exemple #18
0
                    <input type="text" value="<?php 
echo htmlentities(@$track['isrc']);
?>
" class="input_text" size="45" name="isrc">
                  </li>
                  <li class="width-1-3_fixed"><label><? putGS('Bpm') ?></label>
                    <input type="text" value="<?php 
echo htmlentities(@$track['bpm']);
?>
" class="input_text" size="45" name="bpm">
                  </li>
                  <li class="width-1-3_fixed"><label><? putGS('Key signature') ?></label>
                    <select class="input_select" name="key_signature">
                      <? camp_html_select_option('', @$track['key_signature'], getGS('Select key'));
                          foreach ((array)$keyTypes as $value):
                            camp_html_select_option($value, @$track['key_signature'], $value);
                          endforeach ?>
                    </select>
                </li>
               </ul>
               <ul class="form-group">
                  <li class="width-2-3_fixed"><label><? putGS('Buy link') ?><span><? putGS('Find out how to sell your tracks on other platforms easily using SoundCloud in our App Gallery') ?></span></label>
                    <input type="text" value="<?php 
echo htmlentities(@$track['purchase_url']);
?>
" class="input_text" size="45" name="purchase_url">
                  </li>
                  <li class="width-2-3_fixed"><label><? putGS('Video link') ?><span><? putGS('Youtube, Vimeo, Dailymotion and Viddler videos will appear in an on-site player') ?></span></label>
                    <input type="text" value="<?php 
echo htmlentities(@$track['video_url']);
?>
Exemple #19
0
?>
" 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, getGS("Most Recently Added"));
camp_html_select_option('last_modified', $f_order_by, getGS("Most Recently Modified"));
camp_html_select_option('description', $f_order_by, getGS("Description"));
camp_html_select_option('photographer', $f_order_by, getGS("Photographer"));
camp_html_select_option('place', $f_order_by, getGS("Place"));
camp_html_select_option('date', $f_order_by, getGS("Date"));
camp_html_select_option('inuse', $f_order_by, getGS("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);
Exemple #20
0
      <td align="right"><?php 
echo $translator->trans("Section");
?>
:</td>
      <td>
        <?php 
if ($f_issue_number > 0 && count($allSections) >= 1) {
    ?>
        <select name="f_section_number" id="f_section_number" class="input_select">
        <option value=""><?php 
    echo $translator->trans('---Select section---');
    ?>
</option>
        <?php 
    foreach ($allSections as $section) {
        camp_html_select_option($section->getSectionNumber(), $f_section_number, $section->getName());
    }
    ?>
        </select>
        <?php 
} else {
    ?>
        <select class="input_select" disabled><option><?php 
    echo $translator->trans('No sections');
    ?>
</option></select>
        <?php 
}
?>
        &nbsp;
        (<?php 
Exemple #21
0
 emsg="<?php 
putGS("You must choose a language");
?>
">
	<option></option>
	<?php 
// Show all the languages that have not yet been translated.
$displayLanguages = array();
foreach ($allLanguages as $language) {
    if (!in_array($language->getLanguageId(), $articleLanguages)) {
        $displayLanguages[$language->getLanguageId()] = $language->getNativeName();
    }
}
asort($displayLanguages);
foreach ($displayLanguages as $tmpLangId => $nativeName) {
    camp_html_select_option($tmpLangId, $f_language_selected, $nativeName);
}
?>
	</SELECT>
	</TD>
</TR>
<?php 
$canCreate = true;
if ($f_language_selected > 0 && $f_issue_number > 0) {
    // Every article must live inside a cooresponding issue of the same language.
    if (!$translationIssueObj->exists()) {
        if ($g_user->hasPermission("ManageIssue")) {
            // If a section needs to be translated, but the user doesnt have the permission
            // to create a section, then we dont want to display anything here.  Even
            // if they can create the issue, they still need to create a cooresponding section.
            // If they dont have the permission to do that, then no use in creating the issue.
Exemple #22
0
<TR>
	<TD ALIGN="RIGHT" ><?php  putGS("Start"); ?>:</TD>
	<TD>
	<INPUT TYPE="TEXT" class="input_text" NAME="f_subscription_start_date" SIZE="10" VALUE="<?php echo $f_subscription_start_date; ?>" MAXLENGTH="10" alt="date|yyyy/mm/dd|-" emsg="<?php putGS("You must input a valid date."); ?>"> (<?php putGS('YYYY-MM-DD'); ?>)
	</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT" ><?php  putGS("Subscription Type"); ?>:</TD>
	<TD>
	<SELECT NAME="f_subscription_type" class="input_select">
<?php
	$subscription_types = array('PN'=>getGS('Paid (confirm payment now)'),
								'PL'=>getGS('Paid (payment will be confirmed later)'),
								'T'=>getGS('Trial'));
	foreach ($subscription_types as $subscription_type_id=>$subscription_type_description) {
		camp_html_select_option($subscription_type_id, $f_subscription_type, $subscription_type_description);
	}
?>
	</SELECT>
	</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT" ><?php  putGS("Days"); ?>:</TD>
	<TD>
	<INPUT TYPE="TEXT" class="input_text" NAME="f_subscription_days" VALUE="<?php if ($f_subscription_days > 0) echo $f_subscription_days; ?>" SIZE="5" MAXLENGTH="5" alt="number|0|1|1000000000" emsg="<?php putGS("You must input a number greater than 0 into the $1 field.", "Days"); ?>">
	</TD>
</TR>
<TR>
	<TD ALIGN="RIGHT" ><INPUT TYPE="CHECKBOX" NAME="f_subscription_active" CHECKED class="input_checkbox"></TD>
	<TD>
		<?php putGS("Active"); ?>
Exemple #23
0
?>
<p>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" class="action_buttons">
<TR>
	<TD ALIGN="RIGHT">
		<FORM METHOD="GET" ACTION="index.php" NAME="">
		<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="1" class="search_dialog">
		<TR>
			<TD><?php  putGS('Event'); ?>:</TD>
			<TD>
				<SELECT NAME="f_event_search_id" class="input_select">
				<OPTION VALUE="0">
				<?php
				foreach ($events as $event) {
					camp_html_select_option($event->getEventId(), $f_event_search_id, htmlspecialchars($event->getName()));
				}
				?>
				</SELECT>
			</TD>
			<TD><INPUT TYPE="submit" class="button" NAME="Search" VALUE="<?php  putGS('Search'); ?>"></TD>
		</TR>
		</TABLE>
		</FORM>
	</TD>
</TR>
</TABLE>

<P>

<table class="indent">
Exemple #24
0
" alt="blank" emsg="<?php 
echo $translator->trans('You must fill in the $1 field.', array('$1' => $translator->trans('URL Name')));
?>
">
	</TD>
</TR>

<TR>
	<TD ALIGN="RIGHT" ><?php 
echo $translator->trans("Language");
?>
:</TD>
	<TD>
		<SELECT NAME="f_new_language_id" class="input_select"><?php 
foreach ($unusedLanguages as $tmpLanguage) {
    camp_html_select_option($tmpLanguage->getLanguageId(), '', htmlspecialchars($tmpLanguage->getNativeName()));
}
?>
		</SELECT>
	</TD>
</TR>
<TR>
	<TD COLSPAN="2" align="center">
		<INPUT TYPE="HIDDEN" NAME="f_publication_id" VALUE="<?php 
p($f_publication_id);
?>
">
		<INPUT TYPE="HIDDEN" NAME="f_issue_number" VALUE="<?php 
p($f_issue_number);
?>
">
Exemple #25
0
            <TD ALIGN="RIGHT" ><?php 
putGS("Votes per single User");
?>
:</TD>
            <TD style="padding-top: 3px;">
                <SELECT NAME="f_votes_per_user" alt="select" emsg="<?php 
putGS("You must select number of votes per user.");
?>
" class="input_select" onchange="debate_set_nr_of_answers()">
                <option value="0"><?php 
putGS("---Select---");
?>
</option>
                <?php 
for ($n = 1; $n <= 255; $n++) {
    camp_html_select_option($n, isset($votes_per_user) ? $votes_per_user : 1, $n);
}
?>
                </SELECT>
            </TD>
        </TR>
        <?php 
foreach ($debate->getAnswers() as $answer) {
    ?>
            <tr>
                <TD ALIGN="RIGHT" ><?php 
    putGS("Answer \$1", $answer->getNumber());
    ?>
:</TD>
                <TD>
                    <INPUT TYPE="TEXT" NAME="f_answer[<?php 
Exemple #26
0
		<TABLE align="left" border="0" width="100%">
		<TR>
			<TD colspan="2" style="padding-left: 20px; padding-bottom: 5px;font-size: 12pt; font-weight: bold;"><?php  putGS("Select destination"); ?></TD>
		</TR>
		<TR>
			<TD>
				<TABLE border="0">
				<TR>
					<TD VALIGN="middle" ALIGN="RIGHT" style="padding-left: 20px;"><?php  putGS('Folder'); ?>: </TD>
					<TD valign="middle" ALIGN="LEFT">
						<?php if (count($folders) > 1) { ?>
						<SELECT NAME="f_destination_folder" class="input_select" alt="select" emsg="<?php putGS("You must select a destination folder"); ?>">
						<OPTION VALUE="">---<?php  putGS('Select folder'); ?>---</option>
						<?php
						foreach ($folders as $folder) {
							camp_html_select_option($folder, $f_destination_folder, $folder);
						}
						?>
						</SELECT>
						<?php } elseif (count($folders) == 1) {
							$tmpFolder = camp_array_peek($folders);
							p(htmlspecialchars($tmpFolder));
							?>
							<INPUT type="hidden" name="f_destination_folder" value="<?php p($folder); ?>">

						<?php } else { ?>
							<SELECT class="input_select" DISABLED><OPTION><?php  putGS('No folders'); ?></option></SELECT>
						<?php }	?>
					</TD>
				</TR>
				</TABLE>
Exemple #27
0
echo $translator->trans('Section');
?>
: </TD>
					<TD valign="middle" ALIGN="LEFT">
						<?php 
if ($f_destination_issue_number > 0 && count($allSections) > 1) {
    ?>
						<SELECT NAME="f_destination_section_number" class="input_select" ONCHANGE="this.form.submit();">
						<OPTION VALUE="0"><?php 
    echo $translator->trans('---Select section---');
    ?>
</OPTION>
						<?php 
    $previousSection = camp_array_peek($allSections);
    foreach ($allSections as $tmpSection) {
        camp_html_select_option($tmpSection->getSectionNumber(), $f_destination_section_number, $tmpSection->getName());
    }
    ?>
						</SELECT>
						<?php 
} elseif ($f_destination_issue_number > 0 && count($allSections) == 1) {
    $tmpSection = camp_array_peek($allSections);
    p(htmlspecialchars($tmpSection->getName()));
    ?>
							<input type="hidden" name="f_destination_section_number" value="<?php 
    p($f_destination_section_number);
    ?>
">
						<?php 
} else {
    ?>
Exemple #28
0
:</TD>
			<TD style="padding-top: 3px;">
				<?php 
    if (count($allLanguages) > 1) {
        ?>
				<SELECT NAME="f_article_language" alt="select" emsg="<?php 
        putGS("You must select a language.");
        ?>
" class="input_select">
				<option value="0"><?php 
        putGS("---Select language---");
        ?>
</option>
				<?php 
        foreach ($allLanguages as $tmpLanguage) {
            camp_html_select_option($tmpLanguage->getLanguageId(), $f_article_language, $tmpLanguage->getNativeName());
        }
        ?>
				</SELECT>
				<?php 
    } else {
        $tmpLanguage = array_pop($allLanguages);
        echo '<b>' . htmlspecialchars($tmpLanguage->getNativeName()) . '</b>';
        ?>
					<input type="hidden" name="f_article_language" value="<?php 
        p($tmpLanguage->getLanguageId());
        ?>
">
					<?php 
    }
    ?>
Exemple #29
0
            <TD style="padding-top: 3px;">
                <?php 
if (count($allLanguages) > 1) {
    ?>
                <SELECT NAME="f_target_language_id" alt="select" emsg="<?php 
    putGS("You must select a language.");
    ?>
" class="input_select">
                <option value="0"><?php 
    putGS("---Select language---");
    ?>
</option>
                <?php 
    foreach ($allLanguages as $tmpLanguage) {
        if (!array_key_exists($tmpLanguage->getLanguageId(), $existing)) {
            camp_html_select_option($tmpLanguage->getLanguageId(), @$f_target_language_id, $tmpLanguage->getNativeName());
        }
    }
    ?>
                </SELECT>
                <?php 
} else {
    $tmpLanguage = array_pop($allLanguages);
    echo '<b>' . htmlspecialchars($tmpLanguage->getNativeName()) . '</b>';
    ?>
                    <input type="hidden" name="f_target_language_id" value="<?php 
    p($tmpLanguage->getLanguageId());
    ?>
">
                    <?php 
}
Exemple #30
0
    <?php
    foreach ($templates as $template) {
        camp_html_select_option($template->getTemplateId(), $sectionObj->getSectionTemplateId(), $template->getName());
    }
    ?>
    </select>
  </td>
</tr>
<tr>
  <td align="right"><?php putGS("Article Template"); ?>:</td>
  <td>
    <select name="cArticleTplId" class="input_select">
    <option value="0">---</option>
    <?php
    foreach ($templates as $template) {
        camp_html_select_option($template->getTemplateId(), $sectionObj->getArticleTemplateId(), $template->getName());
    }
    ?>
    </select>
  </td>
</tr>
<tr>
  <td colspan="2" align="center">
    <input type="hidden" name="Pub" value="<?php p($Pub); ?>" />
    <input type="hidden" name="Issue" value="<?php p($Issue); ?>" />
    <input type="hidden" name="Language" value="<?php p($Language); ?>" />
    <input type="hidden" name="Section" value="<?php p($Section); ?>" />
    <input type="hidden" name="f_language_selected" ID="f_language_selected" value="<?php p($editorLanguage); ?>" />
    <input type="submit" class="button" name="Save" value="<?php putGS('Save'); ?>" />
  </td>
</tr>