<?
session_start();
include('_db.connection.php');
include('check.access.php');
include('_public.setup.php');
?>
<script language="javascript">
							
function copyit(theField) {
	var tempval=eval("document."+theField)
	tempval.focus()
	tempval.select()
	therange=tempval.createTextRange()
	therange.execCommand("Copy")
}
</script>
	<table cellpadding="0" cellspacing="0" width="780" border="0">
		<?php include("i.header.php"); ?>
		<tr>
			<td>
				<table cellpadding="0" cellspacing="0" border="0">
					<tr>
						<td valign="top">
							<!--
							**************************
							**** BEGIN BODY TABLE ****
							**************************
							-->
							<table cellpadding="0" cellspacing="0">
								<tr>
									<td><img src="./images/HeaderBlank2.gif"></td>
								</tr>
								<tr>
									<td height="50"></td>
								</tr>
								<tr>
									<td align="center">
										<!--
										**************************
										*** BEGIN BODY CONTENT ***
										**************************
										-->
										<table width="90%" border="0">
											<tr>
												<td>
													<table cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #083C58">
														<? if($pmode == "make_port"){ ?>
											<form name="imgmgr">	
											<tr>
												<td>
													<table cellpadding="0" cellspacing="0" width="100%" style="border: 1px solid #083C58">
														<tr>															
															<td bgcolor="#F8F8F8" style="padding: 10px" align="left">
																<table cellpadding="0" cellspacing="0">
																	<tr>
																		<td colspan="3"><font face="Verdana" style="font-size: 11;" color="#083C58"><b>Link to an image portfolio for this folder<br><br>Copy and paste your portfolio link into your page or auction.<br><br></td>
																	</tr>
																	<tr>
																		<td><input type="text" name="portfolio_link" value="<?php echo $setup->url . "/pf.php?fid=" . $fid; ?>" maxlength="64" style="font-size: 10;font-family: verdana; width: 260;"></td>
																		<td>&nbsp;</td>
																		<td><a href="javascript:copyit('imgmgr.portfolio_link')"><img src="./images/ButtonCopy.gif" border="0"></a></td>
																	</tr>
																</table>
															</td>
															<td bgcolor="#083C58" width="155" style="padding: 10px" align="left"><font face="Verdana" style="font-size: 11;" color="#ffffff">
																<table>
																	<tr>
																		<td><img src="./images/OptionsBullet.gif"></td>
																		<td><a href="<?php echo $setup->url . "/pf.php?fid=" . $fid; ?>" target="new" style="text-decoration: none;"><font face="verdana" size="1" color="#ffffff"><b>View This Portfolio</td>
																	</tr>
																	<!--
																	<tr>
																		<td><img src="./images/OptionsBullet.gif"></td>
																		<td><font face="verdana" size="1" color="#ffffff"><b>Email link to a friend</td>
																	</tr>
																	-->
																	<!--
																	<tr>
																		<td><img src="./images/OptionsBullet.gif"></td>
																		<td><font face="verdana" size="1" color="#ffffff"><b>Portfolio Options</td>
																	</tr>
																	-->
																</table>
															</td>
														</tr>
														</form>
													</table>
												</td>
											</tr>	
														
														<? } else { ?>
														<form action="make.portfolio.php?pmode=make_port" method="post">
														<input type="hidden" name="return" value="image.manager.php">
														<tr>
															<td bgcolor="#083C58" style="padding: 10px" width="50%"><font face="Verdana" style="font-size: 11;" color="#ffffff"><i><b>Choose a folder to create a portfolio from.</td>
															<td bgcolor="#F8F8F8" style="padding: 10px" width="50%">
																<table cellpadding="0" cellspacing="0">
																	<tr>
																		<td colspan="3"><font face="Verdana" style="font-size: 11;" color="#083C58"><b>Folder</td>
																	</tr>
																	<tr>
																		<td>
																		<select name="fid" maxlength="64" style="font-size: 10; width: 140;">
																			<?
																			$folder_result = mysql_query("SELECT * FROM folders WHERE mid = '$mid'", $db);
																			while($folder = mysql_fetch_object($folder_result)){
																		?>
																			<option value="<? echo $folder->folder_id; ?>"><? echo $folder->name; ?></option>
																		<?
																			}
																		?>
																		</select>
																		</td>
																		<td>&nbsp;</td>
																		<td><input type="image" src="./images/ButtonCreate.gif"></td>
																	</tr>
																</table>
															</td>
														</tr>
														</form>
														<? } ?>
													</table>
												</td>
											</tr>
											<tr>
												<td>&nbsp;</td>
											</tr>
										</table>
										<!--
										**************************
										**** END BODY CONTENT ****
										**************************
										-->
									</td>
								</tr>
							</table>
							<!--
							**************************
							***** END BODY TABLE *****
							**************************
							-->
						</td>
						<td valign="top"bgcolor="#295670"><img src="./images/IndexDropShadow.gif"></td>
						<td valign="top" bgcolor="#083C58">
							<?php include("i.member.rn.php"); ?>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td background="./images/Footer.gif"><img src="./images/Footer.gif" border="0"></td>
		</tr>
		<tr>
			<td>
				<?php include("i.footer.php"); ?>
			</td>
		</tr>
	</table>

<?
mysql_close($db);
print($close);
?>