Esempio n. 1
0
                        //echo "<code>moving $tmp_path to $TMP_DIR$tmp_name_only</code>";
                        ?>
					<?php 
                        $form = new form($LSP_URL . '?content=add', 'File Details', 'fa-upload');
                        ?>
					<div class="form-group">
					<label for="category">Category</label>
					<select name="category" class="form-control"><?php 
                        echo $categories;
                        ?>
</select>
					</div>
					<div class="form-group">
					<label for="license">License</label>
					<select name="license" class="form-control"><?php 
                        echo get_licenses();
                        ?>
</select>
					</div>
					
					<div class="form-group">
					<label for="description">Description</label>
					<textarea id="description" name="description" class="form-control"></textarea>
					</div>
					<button type="submit" class="btn btn-primary" name="addfinalok" value="Add File"><span class="fa fa-check"></span>&nbsp;Add File</button>&nbsp;
					<a href="" class="btn btn-warning"></span><span class="fa fa-close"></span>&nbsp;Cancel</a>
					<input type="hidden" name="fn" value="<?php 
                        echo $file_path;
                        ?>
" />
					<input type="hidden" name="tmpname" value="<?php 
Esempio n. 2
0
        $form = new form($LSP_URL . '?content=update&file=' . GET('file'), $title = 'Edit File', 'fa-pencil');
        ?>
		<div class="form-group">
			<label for="category">Category</label>
			<select name="category" class="form-control">
			<?php 
        echo $categories;
        ?>
	
			</select>
		</div>
		<div class="form-group">
			<label for="license">License</label>
			<select name="license" class="form-control">
			<?php 
        echo get_licenses(get_license_name(get_file_license(GET('file'))));
        ?>
			</select>
		</div>
		<div class="form-group">
			<label for="description">Description</label>
			<textarea rows=20 name="description" class="form-control"><?php 
        echo htmlspecialchars_decode(get_file_description(GET('file')), ENT_COMPAT);
        ?>
</textarea>
		</div>
		<button class="btn btn-primary" type="submit" name="updateok" value="OK"><span class="fa fa-check"></span>&nbsp;Update File</button>
		<a href="<?php 
        echo "{$LSP_URL}?action=show&file=" . GET('file');
        ?>
" class="btn btn-warning"><span class="fa fa-close"></span>&nbsp;Cancel</a>