function simple_form($CategoryID)
    {
        $Torrent = $this->Torrent;
        ?>
		<table cellpadding="3" cellspacing="1" border="0" class="layout border slice" width="100%">
			<tr id="name">
<?php 
        if ($this->NewTorrent) {
            if ($this->Categories[$CategoryID] == 'E-Books') {
                ?>
				<td class="label">Author - Title:</td>
<?php 
            } else {
                ?>
				<td class="label">Title:</td>
<?php 
            }
            ?>
				<td><input type="text" id="title" name="title" size="60" value="<?php 
            echo display_str($Torrent['Title']);
            ?>
" /></td>
			</tr>
			<tr>
				<td class="label">Tags:</td>
				<td><input type="text" id="tags" name="tags" size="60" value="<?php 
            echo display_str($Torrent['TagList']);
            ?>
"<?php 
            Users::has_autocomplete_enabled('other');
            ?>
 /></td>
			</tr>
			<tr>
				<td class="label">Image (optional):</td>
				<td><input type="text" id="image" name="image" size="60" value="<?php 
            echo display_str($Torrent['Image']);
            ?>
"<?php 
            echo $this->Disabled;
            ?>
 /></td>
			</tr>
			<tr>
				<td class="label">Description:</td>
				<td>
<?php 
            new TEXTAREA_PREVIEW('desc', 'desc', display_str($Torrent['GroupDescription']), 60, 8);
            TEXTAREA_PREVIEW::JavaScript(false);
            ?>
				</td>
			</tr>
<?php 
        }
        ?>
		</table>
<?php 
    }
Exemple #2
0
    $TextareaRows = 8;
}
if (!isset($InputAction)) {
    $InputAction = 'reply';
}
if (!isset($InputTitle)) {
    $InputTitle = 'Post comment';
}
if (!isset($Action)) {
    $Action = '';
}
// TODO: Remove inline styles
// Old to do?
// TODO: Preview, come up with a standard, make it look like post or just a
// block of formatted BBcode, but decide and write some proper XHTML
$ReplyText = new TEXTAREA_PREVIEW('body', 'quickpost', '', $TextareaCols, $TextareaRows, false, false, true, array('tabindex="1"', 'onkeyup="resize(\'quickpost\')"'));
?>

			<br />
			<div id="reply_box">
				<h3><?php 
echo $InputTitle;
?>
</h3>
				<div class="box pad">
					<table class="forum_post box vertical_margin hidden preview_wrap" id="preview_wrap_<?php 
echo $ReplyText->getID();
?>
">
						<colgroup>
<?php 
Exemple #3
0
<?php 
    }
    // Reply box and buttons
    ?>
		<h3>Reply</h3>
		<div class="box pad" id="reply_box">
			<div id="buttons" class="center">
				<form class="manage_form" name="staff_messages" action="staffpm.php" method="post" id="messageform">
					<input type="hidden" name="action" value="takepost" />
					<input type="hidden" name="convid" value="<?php 
    echo $ConvID;
    ?>
" id="convid" />
<?php 
    if ($Status != 'Resolved') {
        $TextPrev = new TEXTAREA_PREVIEW('message', 'quickpost', '', 90, 10, true, false);
    }
    ?>
					<br />
<?php 
    // Assign to
    if ($IsStaff) {
        // Staff assign dropdown
        ?>
					<select id="assign_to" name="assign">
						<optgroup label="User classes">
<?php 
        // FLS "class"
        $Selected = !$AssignedToUser && $PMLevel == 0 ? ' selected="selected"' : '';
        ?>
							<option value="class_0"<?php 
Exemple #4
0
" />
			<div>
				<h3>Title</h3>
				<input type="text" name="title" size="92" maxlength="100" />
<?php 
/* if ($_GET['alias']) { ?>
				<input type="hidden" name="alias" value="<?=display_str(alias($_GET['alias']))?>" />
<? } else { ?>
				<h3>Alias</h3>
				<p>An exact search string or name that should lead to this article. (More can be added later)</p>
				<input type="text" name="alias" size="50" maxlength="50" />
<? } */
?>
				<h3>Body </h3>
<?php 
$ReplyText = new TEXTAREA_PREVIEW('body', 'body', '', 91, 22, true, false);
if (check_perms('admin_manage_wiki')) {
    ?>
				<h3>Access</h3>
				<p>There are some situations in which the viewing or editing of an article should be restricted to a certain class.</p>
				<strong>Restrict read:</strong> <select name="minclassread"><?php 
    echo class_list();
    ?>
</select>
				<strong>Restrict edit:</strong> <select name="minclassedit"><?php 
    echo class_list();
    ?>
</select>
<?php 
}
?>
Exemple #5
0
</div>
<?php 
TEXTAREA_PREVIEW::JavaScript();
?>
<div id="footer">
<?php 
if (!empty($Options['disclaimer'])) {
    ?>
	<br /><br />
	<div id="disclaimer_container" class="thin" style="text-align: center; margin-bottom: 20px;">
		None of the files shown here are actually hosted on this server. The links are provided solely by this site's users. These BitTorrent files are meant for the distribution of backup files. By downloading the BitTorrent file, you are claiming that you own the original file. The administrator of this site (<?php 
    echo site_url();
    ?>
) holds NO RESPONSIBILITY if these files are misused in any way and cannot be held responsible for what its users post, or any other actions of it.
	</div>
<?php 
}
if (count($UserSessions) > 1) {
    foreach ($UserSessions as $ThisSessionID => $Session) {
        if ($ThisSessionID != $SessionID) {
            $LastActive = $Session;
            break;
        }
    }
}
$Load = sys_getloadavg();
?>
	<p>Site and design &copy; <?php 
echo date('Y');
?>
 <?php