/**
     * install: ask for confirmation and choose language
     */
    function install()
    {
        echo $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'install_intro', array($GLOBALS['Language']->getText('global', 'btn_create')));
        // Display creation form
        echo '<form name="WikiCreation" method="post" action="' . $this->wikiLink . '">
             <input type="hidden" name="group_id" value="' . $this->gid . '" />
             <input type="hidden" name="view" value="doinstall" />' . $GLOBALS['Language']->getText('wiki_views_wikiserviceviews', 'wiki_language') . ' ';
        echo html_get_language_popup($GLOBALS['Language'], 'language_id', UserManager::instance()->getCurrentUser()->getLocale());
        echo '<input type="submit" value="' . $GLOBALS['Language']->getText('global', 'btn_create') . '">
</form>';
    }
Example #2
0
    		
    		echo "<strong>" . _('Name your file :') . '</strong>'.utils_requiredField().'<input type="text" name="name" ><br>';
    		echo '<a href="javascript:openEditor('.$group_id.');">'._('Edit').'</a>';
    		echo '<input type="hidden" name="data">';
    		echo '<input type="hidden" name="type" value="editor">';
    		echo '</td>
    				</tr>';
    		break;		
    	}
    }
    */
    echo '
			<tr>
				<td>
				<strong>' . _('Language') . ' :</strong><br />
				' . html_get_language_popup('language_id', 1) . '
				</td>
			</tr>
			<tr>
				<td>
				<strong>' . _('Group that document belongs in') . ' :</strong><br />';
    $dgf = new DocumentGroupFactory($g);
    if ($dgf->isError()) {
        exit_error('Error', $dgf->getErrorMessage());
    }
    $dgh = new DocumentGroupHTML($g);
    if ($dgh->isError()) {
        exit_error('Error', $dgh->getErrorMessage());
    }
    //display_groups_option($group_id);
    $selected_doc_group = getIntFromRequest('selected_doc_group');
Example #3
0
        }
        unset($GLOBALS['editor_was_set_up']);
        */
        echo '</td>
			</tr>';
    }
    ?>

	<tr>
		<td>
		<strong><?php 
    echo _('Language');
    ?>
</strong><br />
		<?php 
    echo html_get_language_popup('language_id', $d->getLanguageID());
    ?>
</td>
	</tr>

	<tr>
		<td>
		<strong><?php 
    echo _('Group that document belongs in');
    ?>
</strong><br />
		<?php 
    //echo display_groups_option($group_id,$d->getDocGroupID());
    $dgh->showSelectNestedGroups($dgf->getNested(), 'doc_group', false, $d->getDocGroupID());
    ?>
</td>
Example #4
0
echo _('Last Name:');
echo utils_requiredField();
?>
<br />
<input size="30" type="text" name="lastname" value="<?php 
print htmlspecialchars(stripslashes($lastname));
?>
" />
</p>
<p>
<?php 
echo _('Language Choice:');
?>
<br />
<?php 
echo html_get_language_popup('language_id', language_name_to_lang_id(choose_language_from_context()));
?>
</p>
<p>
<?php 
echo _('Timezone:');
?>
<br />
<?php 
echo html_get_timezone_popup('timezone', $timezone);
?>
</p>
<p>
<?php 
echo _('Theme');
?>
Example #5
0
			<table border="0" width="75%">

			<tr>
			<th>Document Title:</th>
			<td><input type="text" name="title" size="40" maxlength="255"></td>

			</tr>
			<tr>
			<th>Description:</th> 
			<td><input type="text" name="description" size="50" maxlength="255"></td>
			</tr>

			<tr>
			<th> Language:</th>
			<td>';
        echo html_get_language_popup($Language, 'language_id', 1);
        echo '</td>
			</tr>

			<tr>
			<th> <input type="hidden" name="MAX_FILE_SIZE" value="20000000">
                 <input type="checkbox" name="upload_instead" value="1"> <B>Upload File:</B></th>
			<td> <input type="file" name="uploaded_data" size="30"></td>
			</tr>

			<tr>
			<th>OR Paste Document (in html format):</th>
			<td><textarea cols="60" rows="10" name="data"></textarea></td>
			</tr>

			<tr>
Example #6
0
/**
 *
 *  Show a form with a language pop-up box
 *
 */
function menu_language_box()
{
    global $HTML, $Language, $cookie_language_id;
    $HTML->menuhtml_top('Language:');
    //which option should be checked
    //in the pop-up box
    if ($cookie_language_id) {
        $lang = $cookie_language_id;
    } else {
        $lang = $Language->getLanguageId();
    }
    echo '
	<!--    

		this document.write is necessary
		to prevent the ads from screwing up
		the rest of the site in netscape...

		Thanks, netscape, for your cheesy browser

	-->
	<FORM ACTION="/account/setlang.php" METHOD="POST">
	' . eregi_replace('<select ', '<select onchange="submit()" ', html_get_language_popup($Language, 'language_id', $lang)) . '
	<BR>
	<NOSCRIPT>
	<INPUT TYPE=SUBMIT NAME=SUBMIT VALUE="Change">
	</NOSCRIPT>
	</FORM>';
    $HTML->menuhtml_bottom();
}
Example #7
0
			        <td><input type="text" name="title" size="40" maxlength="255" value="' . $row['title'] . '"></td>
			        <td class="example">(e.g. How to use the download server)</td>

			</tr>
			<tr>
			</tr>
			<tr>
			        <th>Short Description:</td>
			        <td><input type="text" name="description" size="20" maxlength="255" value="' . $row['description'] . '"></td>
			        <td class="example">(e.g. http://www.linux.com/)</td>

			</tr>
			<tr>
				<th>Language:</th>
				<td>';
    echo html_get_language_popup($Language, 'language_id', $row['language_id']);
    echo '
            <tr>
                    <th>Type:</th>
                    <td><input type="hidden" name="type" value="' . $row['type'] . '">' . $row['type'] . '</td>
            </tr>';
    if ($row['filename']) {
        echo '
            <tr>
                    <th>Filename:</th>
                    <td><input type="hidden" name="filename" value="' . $row['filename'] . '">' . $row['filename'] . ' (<a href="../display_doc.php?docid=' . $docid . '&group_id=' . $group_id . '">View Document</a>)</td>
            </tr>';
    }
    echo '
			<tr>
			<th> <input type="hidden" name="MAX_FILE_SIZE" value="20000000">
Example #8
0
<?php 
$font_vals = array(FONT_SIZE_BROWSER, FONT_SIZE_SMALL, FONT_SIZE_NORMAL, FONT_SIZE_LARGE);
$font_texts = array($Language->getText('account_options', 'font_size_browser'), $Language->getText('account_options', 'font_size_small'), $Language->getText('account_options', 'font_size_normal'), $Language->getText('account_options', 'font_size_large'));
echo '<tr><td>' . $Language->getText('account_options', 'font_size') . ': </td>
          <td>' . html_build_select_box_from_arrays($font_vals, $font_texts, "user_fontsize", $user->getFontSize(), false) . '</td>
      </tr>';
?>
                    <tr>
                        <td>
<?php 
echo $Language->getText('account_options', 'language');
?>
: </td><td>
<?php 
// display supported languages
echo html_get_language_popup($Language, 'language_id', UserManager::instance()->getCurrentUser()->getLocale());
?>
                    </tr>
                   <tr>
                        <td>
 	  	 <?php 
echo $Language->getText('account_options', 'username_display') . ':';
?>
 	  	 </TD><TD>
 	  	 <?php 
// build the username_display select-box
print '<select name="username_display">' . "\n";
$u_display = user_get_preference("username_display");
print '<option value="' . UserHelper::PREFERENCES_NAME_AND_LOGIN . '"';
if ($u_display == UserHelper::PREFERENCES_NAME_AND_LOGIN) {
    print ' selected="selected"';
site_user_header(array('title' => "Change Timezone &amp; Language"));
?>
<H3>Timezone/Language Change</h3>
<P>
Now, no matter where you live, you can see all dates and times throughout 
<?php 
echo $sys_default_name;
?>
 as if it were in your neighborhood.
<P>
<FORM ACTION="<?php 
echo $PHP_SELF;
?>
" METHOD="POST">
<?php 
echo '<H4>' . $feedback . '</H4>';
echo '
<P>
Timezone:<BR>';
echo html_get_timezone_popup('timezone', user_get_timezone());
echo '
<P>
Language:<BR>';
echo html_get_language_popup($Language, 'language_id', user_get_language());
?>
<P>
<input type="submit" name="submit" value="Update">
</form>

<?php 
site_user_footer(array());
Example #10
0
?>
</td>
<td><input type="text" name="lastname" value="<?php 
print $u->getLastName();
?>
" />
</td>
</tr>

<tr valign="top">
<td><?php 
echo _('Language:');
?>
 </td>
<td><?php 
echo html_get_language_popup('language', $u->getLanguage());
?>
</td>
</tr>

<tr valign="top">
<td><?php 
echo _('Timezone:');
?>
 </td>
<td><?php 
echo html_get_timezone_popup('timezone', $u->getTimeZone());
?>
</td>
</tr>