$albums = get_albums(); $output .= "\n\t\t\t" . '<td style="width: 2%;"> </td> <td class="cssbox-upload-body"> <div class="no-margin-bottom"> <input tabindex="40" onclick="var k=document.getElementsByName(\'albums_menu\');k[0].focus();" type="radio" name="destination_radio" id="destination_radio" accesskey="a" value="existing" checked="checked" /> <label for="destination_radio" style="display: inline;">' . plog_tr('Existing <em>A</em>lbum') . '</label> ' . generate_albums_menu($albums) . ' </div><!-- /no-margin-bottom --> <h3 style="text-indent: 10px; margin-bottom: 15px;">' . plog_tr('-- OR --') . '</h3> <div> <input tabindex="60" onclick="var k=document.getElementsByName(\'new_album_name\');k[0].focus();" type="radio" name="destination_radio" accesskey="b" value="new" /> <label for="new_album_name" style="display: inline;">' . plog_tr('Create a New Al<em>b</em>um') . '</label> <label class="no-margin-bottom" for="new_album_name" style="font-weight: normal;">' . plog_tr('New Album Name') . ':</label> <input class="no-margin-top" tabindex="70" style="width: 79%;" onclick="var k=document.getElementsByName(\'destination_radio\');k[1].checked=true;" type="text" id="new_album_name" name="new_album_name" /> <label class="no-margin-bottom" for="collections_menu" style="font-weight: normal;">' . plog_tr('In Collection') . ':</label> ' . generate_collections_menu() . ' </div> <p class="align-left no-margin-top no-margin-bottom" style="text-indent: 5px;"><input class="submit" type="submit" name="upload" value="' . plog_tr('Upload') . '" /></p> </td> </tr> </table> </form>' . "\n"; $output_error = "\n\t" . '<h1>' . plog_tr('Upload Images') . '</h1> <p class="actions">' . sprintf(plog_tr('Before you can begin uploading images to your gallery, you must create at least <strong>one collection</strong> AND <strong>one album</strong> within that collection. Move over to the <a href="%s">Manage</a> tab to begin creating your gallery structure.'), 'plog-manage.php') . '</p>'; require_once PLOGGER_DIR . 'plog-admin/includes/install-functions.php'; if (gd_missing()) { $output_error = "\n\t" . '<h1>' . plog_tr('Upload Images') . '</h1> <p class="errors">' . plog_tr('PHP GD extension is not installed, it is required to upload images.') . '</p>'; display($output_error, 'upload');
$output .= ' <h1>' . plog_tr('Destination:') . '</h1> <table> <tr><td> <table><tr valign="middle"><td width="20"><input accesskey="a" type="radio" name="destination_radio" value="existing" ' . $existing . '></td><td><label>Existing <em>A</em>lbum</label></td></tr></table> ' . generate_albums_menu($albums, "single", $row['id']) . ' <td><h3>OR</h3></td> <td><table><tr valign="middle"><td width="20"><input accesskey="b" onclick="var k=document.getElementsByName(\'new_album_name\');k[0].focus()" type="radio" name="destination_radio" value="new" ' . $new_album . '></td><td><label>Create a New Al<em>b</em>um</label></td></table><table> <tr valign="middle"><td width="120"><label>' . plog_tr('New Album Name:') . '</label></td><td width="160"><input type="text" name="new_album_name" value="' . $new_album_name . '" onclick="var k=document.getElementsByName(\'destination_radio\');k[1].checked=true;" /> <td width="90">' . plog_tr('In collection:') . '</td><td> ' . generate_collections_menu() . '</td></tr></table></td><tr> <td><br/><input class="submit" type="submit" name="upload" value="' . plog_tr('Import') . '" /></td></tr> </table></div>'; $output .= '</form>'; $key_arr = join(",\n", $keys); $output .= "<script type='text/javascript'>\nvar importThumbs=[\n"; $output .= $key_arr; $output .= "];\n"; $output .= "requestImportThumb();</script>"; } } } $output_error = '<h1>' . plog_tr('Import') . '</h1><p class="actions">' . sprintf(plog_tr('Before you can begin importing photos to your gallery, you must create at least <strong>one collection</strong> AND <strong>one album</strong> within that collection. Move over to the <a href="%s">"Manage"</a> tab to begin creating your organizational structure'), 'plog-manage.php') . '</p>'; $num_albums = count_albums(); if ($num_albums > 0) { display($output, "import");