/** * Display form to add pictures to an album * * @static * @access public * @param string [$name] Album name * @param integer [$id] Album id */ public static function ma_upload($name, $id) { echo '<div id="edit_media">' . '<h3>Upload new pictures for "' . $name . '"</h3>' . '<input type="file" name="picture1" /><br/>' . '<input type="file" name="picture2" /><br/>' . '<input type="file" name="picture3" /><br/>' . '<input type="file" name="picture4" /><br/>' . '<input type="file" name="picture5" /><br/>' . '<input type="file" name="picture6" /><br/>' . '<input type="file" name="picture7" /><br/>' . '<input type="file" name="picture8" /><br/>' . '<input type="file" name="picture9" /><br/>' . '<input type="file" name="picture10" /><br/>' . '<br/>' . '<span class="indication">' . 'Please don\'t quit this page while uploading</span><br/>' . '<span class="indication">The maximum upload file size is set to ' . HandleMedia::max_upload() . 'MB</span><br/>' . '<input type="hidden" name="album_id" value="' . $id . '" />' . '<input class="submit button button_publish" type="submit" name="upload" value="Add Pictures" />' . '<h3>Upload a zip</h3>' . '<input type="file" name="zip" /><br/>' . '<br/>' . '<span class="indication">Your pictures has to be at the root of the zip (not in a sub-folder)</span><br/>' . '<input class="submit button button_publish" type="submit" name="upload_zip" value="Upload Zip" />' . '</div>'; }
/** * Display form to add a template * * @static * @access public */ public static function nt_form() { echo '<h3>Add a template to your website</h3>' . '<div id="new_tpl">' . '<lable for="tpl">Upload a template archive:</label> <input id="tpl" type="file" name="tpl" required />' . '<input id="upload" class="button button_publish" type="submit" name="upload" value="Upload" /><br/>' . '<span class="indication">(The maximum upload file size is set to ' . Media::max_upload() . 'MB)</span>' . '</div>'; }