{HEADER}

{ADMIN_MENU}

<link type="text/css" href="images/themes/base/jquery.ui.all.css" rel="stylesheet" />
<script type="text/javascript" src="images/jquery-1.4.2.js"></script>
<script type="text/javascript" src="images/external/jquery.bgiframe-2.1.1.js"></script>
<script type="text/javascript" src="images/ui/jquery.ui.core.js"></script>
<script type="text/javascript" src="images/ui/jquery.ui.widget.js"></script>
<script type="text/javascript" src="images/ui/jquery.ui.mouse.js"></script>
<script type="text/javascript" src="images/ui/jquery.ui.button.js"></script>
<script type="text/javascript" src="images/ui/jquery.ui.draggable.js"></script>
<script type="text/javascript" src="images/ui/jquery.ui.position.js"></script>
<script type="text/javascript" src="images/ui/jquery.ui.resizable.js"></script>
<script type="text/javascript" src="images/ui/jquery.ui.dialog.js"></script>
<script type="text/javascript" src="images/ui/jquery.effects.core.js"></script>

<style type="text/css">
	div#users-contain { width: 370px; margin: 20px 0; }
	div#users-contain table { margin: 1em 0; border-collapse: collapse; width: 100%; }
	div#users-contain table td, div#users-contain table th { border: 1px solid #eee; padding: .6em 10px; text-align: left; }
	.ui-dialog .ui-state-error { padding: .3em; }
	.validateTips { border: 1px solid transparent; padding: 0.3em; }		
</style>

<script type="text/javascript">
<!-- Begin
	$(function() {
		$("#dialog").dialog("destroy");
		
		var f = document.project_form;
		
		var allFields = $([]).add(f.csv_domain).add(f.csv_web_folder).add(f.csv_cpanel_login).add(f.csv_cpanel_password).add(f.csv_homedirpath).add(f.csv_domain_inside_folder).add(f.csv_domain_folder_name).add(f.csv_admin_login).add(f.csv_admin_password).add(f.csv_site_name).add(f.csv_description),
			tips = $(".validateTips");

		function updateTips(t) {
			tips
				.text(t)
				.addClass('ui-state-highlight');
			setTimeout(function() {
				tips.removeClass('ui-state-highlight', 1500);
			}, 500);
		}

		function checkLength(o,n,min,max) {

			if ( o.val().length > max || o.val().length < min ) {
				o.addClass('ui-state-error');
				updateTips("Length of " + n + " must be between "+min+" and "+max+".");
				return false;
			} else {
				return true;
			}

		}

		function checkRegexp(o,regexp,n) {

			if ( !( regexp.test( o.val() ) ) ) {
				o.addClass('ui-state-error');
				updateTips(n);
				return false;
			} else {
				return true;
			}

		}
		
		$("#dialog-form").dialog({
			autoOpen: false,
			height: 400,
			width: 550,
			modal: true,
			buttons: {
				'Insert & Continue Adding': function() {					
					InsertInToCSVBox_MasterBlog();					
				},				
				'Insert and Finish': function() {					
					InsertInToCSVBox_MasterBlog();					
					$(this).dialog('close');
				},
				Close: function() {
					$(this).dialog('close');
				}
			},
			close: function() {
				//allFields.val('').removeClass('ui-state-error');
			}
		});
		
		$('#create-form')
			.button()
			.click(function() {
				$('#dialog-form').dialog('open');
			});

	});
//  End -->
</script>

<table border="0" cellpadding="0" cellspacing="0" width="100%" bordercolor="#FFFFFF" bordercolorlight="#FFFFFF" bordercolordark="#FFFFFF">
<tr>
<td width="100%" bordercolor="#808080" bordercolorlight="#808080" bordercolordark="#808080">
	<div align="center">
	<span class=error>{ERR_MSG}</span>
	<table width="100%">
		<tr><td>
			<img src="images/03.png" valign=top><font size=5 face=Georgia, Verdana, Geneva, sans-serif color=#484646><i>Install Multiple Blogs</i></font>
			<br>
			<hr style="width: 100%; border: 3px double; color: #DFDFDF; background: #FFFFFF;">
			<div align="right"><a target="_new" href="help/admin_batch_install_option1.html" onClick="window.open('help/admin_batch_install_option1.html','help','location=no,menubar=no,status=no,scrollbars=yes,width=550,height=500');return false" ><img border=0 src="images/help_button.png" alt="Help" ></a></div>

			<table align="center" width="100%" cellspacing="0" cellpadding="5" border=0>
            	<tr>
            	<td align="left">
            		<br>
            		<table width="100%" border=0>

						<tr><td colspan="2" align="center" width="100%"><font size=2 face=Verdana, Geneva, sans-serif><h3>Multiple Blog Install for Master Blog Profile #{profile_id}</h3><span class=error>{msg}{ERR_MSG}</span></td></tr>

						<tr><td colspan="2" align="left" width="100%"><font size=2 face=Verdana, Geneva, sans-serif><font size=2 face=Verdana, Geneva, sans-serif> Fill-out the information below to create or install projects using master blog profile {profile_name}.<br><bR></font>

                       	<form action="{SELF}" method="POST" id=project_form name=project_form onsubmit="return formCheck(this);">
                        <input type="hidden" name=action value="batch_install">
                       	<input type="hidden" name="action2" value="go">
                      	<input type="hidden" name="masterblog_popup" value="1">
                        <input type="hidden" name="masterblog" value="1">
                        <input type="hidden" name="profile_id" value="{profile_id}">

    <tr><td colspan=3>    
			<div id="dialog-form" title="Insert Data InTo CSV Box">

            <h3><font color="#000000" face=Verdana, Geneva, sans-serif size=2><b>CSV Editor</b></font></h3> <p><table border="0" cellpadding="2" cellspacing= "5" width="100%">
            
            	<tr><td colspan=3><hr style="width: 100%; height: 1px; border: 1px solid #4A619C;"></td></tr>
            
            	<tr><td colspan=3><font color="#000000" face=Verdana, Geneva, sans-serif size=2><b>Domain and Hosting Account Info</b></font></td></tr>
            
                        <tr><td valign=top>
							<font size=2 face=Verdana, Geneva, sans-serif>Hostname/domain:</td><td>&nbsp;</td><td><input size=40 type="text" id="csv_domain" name="csv_domain" value="" maxlength="225">
							<img src="images/tooltip.png" width="16" height="16" alt="" border="0" onmouseover="Tip('E.g. foo.com or www.foo.com. It can be either main or &quot;addon&nbsp; Cpanel domain.<br>If you enter something like some.foo.com, it will be assumed that you want to install on subdomain some.foo.com. Subdomain will be created if it doesnt exist already and if you hosting provided allow subdomain creation.<br><br>In case of addon domain just enter addon domain name, e.g. foo.com or www.foo.com.<br><br> In case of existing installation it should match hostname used in WP Options-&gt;General &quot;WordPress address&quot;. i.e. if it is without www. in WP options, enter it without www. here, and vice versa.', BALLOON, true, ABOVE, true, OFFSETX, -17, PADDING, 8)" onmouseout="UnTip()">
                        </td>
                        </tr>

                        <tr><td><font size=2 face=Verdana, Geneva, sans-serif><br>Web folder (empty if web root):</td><td>&nbsp;</td><td><br><input size=40 type="text" id="csv_web_folder" name="csv_web_folder" value="" maxlength="255"> <img src="images/tooltip.png" width="16" height="16" alt="" border="0" onmouseover="Tip('Case sensitive. E.g. enter MyBlog if you want it to be installed in www.foo.com/MyBlog. It is advised to use some web folder for installation rather than to clobber web root, it makes easier to uninstall.', BALLOON, true, ABOVE, true, OFFSETX, -17, PADDING, 8)" onmouseout="UnTip()"></td></tr>

                        <tr><td colspan=3>&nbsp;</td></tr>

                        <tr><td><font size=2 face=Verdana, Geneva, sans-serif>Cpanel Login:</td><td>&nbsp;</td><td><input size="40" type="text" id="csv_cpanel_login" name="csv_cpanel_login" value="" maxlength="20" autocomplete="off"> <img src="images/tooltip.png" width="16" height="16" alt="" border="0" onmouseover="Tip('This is Cpanel not FTP login.  Enter main domain Cpanel login in case of addon domain.', BALLOON, true, ABOVE, true, OFFSETX, -17, PADDING, 8)" onmouseout="UnTip()"></td></tr>

                        <tr><td><font size=2 face=Verdana, Geneva, sans-serif>Cpanel Password:</td><td>&nbsp;</td><td><input size="40" type="{ENCRYPTED_FIELDS}" id="csv_cpanel_password" name="csv_cpanel_password" value="" maxlength="255" autocomplete="off"> <img src="images/tooltip.png" width="16" height="16" alt="" border="0" onmouseover="Tip('This is Cpanel not FTP password.  Enter main domain Cpanel password in case of addon domain.', BALLOON, true, ABOVE, true, OFFSETX, -17, PADDING, 8)" onmouseout="UnTip()"></td></tr>


            	<tr><td colspan=3><hr style="width: 100%; height: 1px; border: 1px solid #4A619C;"></td></tr>
                
                <tr><td colspan=3><font color="#000000" face=Verdana, Geneva, sans-serif size=2><b>Only required for Addon Domain Installations</b></font></td></tr>

                        <tr><td valign=top><br><font size=2 face=Verdana, Geneva, sans-serif>Home directory begins with?:</td><td>&nbsp;</td><td valign=top><br><select id="csv_homedirpath" name="csv_homedirpath">
                                <!-- BEGIN homedirpath_option_block -->
                                    <option value="{homedirpath}" {homedirpath_selected}>{homedirpath}</option>
                                <!-- END homedirpath_option_block -->
                                </select>
                                <img src="images/tooltip.png" width="16" height="16" alt="" border="0" onmouseover="Tip('You can check from cPanel: <i>&quot;Home Directory&quot;</i>: i.e. /home/Username or /home2/Username', BALLOON, true, ABOVE, true, OFFSETX, -17, PADDING, 8)" onmouseout="UnTip()">
                        </td></tr>

                        <tr><td valign=top><font size=2 face=Verdana, Geneva, sans-serif>Hostname/domain/<br>addon domain/<br>sub-domain inside folder?:</td><td>&nbsp;</td><td><input id="csv_domain_inside_folder" name="csv_domain_inside_folder" type="checkbox" value="1"> <font size=1 face=Verdana, Geneva, sans-serif>This may be required if Hostname/domain/addon domain/sub-domain inside the folder: i.e. /public_html/domain.com/ or /public_html/www.domain.com/ or /public_html/domain/ or /public_html/sub-domain/ or /public_html/domain.com/sub-domain/</td></tr>

                        <tr><td valign=top><br><font size=2 face=Verdana, Geneva, sans-serif>Domain folder name:</td><td>&nbsp;</td><td><br><input size=40 type="text" id="csv_domain_folder_name" name="csv_domain_folder_name" value="" maxlength="255">
                        	<img src="images/tooltip.png" width="16" height="16" alt="" border="0" onmouseover="Tip('If above checked then enter folder name: <br>i.e. domain.com or www.domain.com or domain or sub-domain or domain.com/sub-domain, etc.', BALLOON, true, ABOVE, true, OFFSETX, -17, PADDING, 8)" onmouseout="UnTip()">
                        </td></tr>
                        
                
                <tr><td colspan=3><hr style="width: 100%; height: 1px; border: 1px solid #4A619C;"></td></tr>
                
                <tr><td colspan=3><font color="#000000" face=Verdana, Geneva, sans-serif size=2><b>Blog Information</b></font></td></tr>

                        <tr><td valign=top><font size=2 face=Verdana, Geneva, sans-serif>Site Name:</td><td>&nbsp;</td><td><input size=40 type="text" id="csv_site_name" name="csv_site_name" value="" maxlength="255"></td></tr>

                        <tr><td valign=top><font size=2 face=Verdana, Geneva, sans-serif>Tag line of description:</td><td>&nbsp;</td><td><input size=40 type="text" id="csv_description" name="csv_description" value="" maxlength="255"></td></tr>

                        <tr><td valign=top><font size=2 face=Verdana, Geneva, sans-serif>Admin Login:</td><td>&nbsp;</td><td><input size=40 type="text" id="csv_admin_login" name="csv_admin_login" value="" maxlength="255" autocomplete="off"></td></tr>

                        <tr><td valign=top><font size=2 face=Verdana, Geneva, sans-serif>Admin Password:</td><td>&nbsp;</td><td><input size=40 type="{ENCRYPTED_FIELDS}" id="csv_admin_password" name="csv_admin_password" value="" maxlength="255" autocomplete="off"></td></tr>                

            </table></p>
            
            </div>
        
        </td></tr>                        
                        
                        <tr><td colspan=3><div class="accordion2">

                        <div align="right"><a href='javascript:ExpandAll(7);'>Expand All</a> | <a href='javascript:CloseAll(7);'>Close All</a></div>

						<h3><font color="#000000" face=Verdana, Geneva, sans-serif size=2><b>Domain and Hosting Account Info</b></font></h3>
						<p><table border="0" cellpadding="2" cellspacing="5" width="100%">

						<tr><td valign=top> <tr><td align=right><font size=2 face=Verdana, Geneva, sans-serif>&nbsp; </td><td>&nbsp; </td><td align=left><font size=2 face=Verdana, Geneva, sans-serif>If you like to use the CSV Editor instead of your own editor then click below. This is recommended since it is easier to add your blog's info to the CSV Textbox below.</font><br><br><button type="button" id="create-form">CSV Editor</button></td></tr>

						<tr><td colspan="4"><hr style="width: 100%; height: 1px; border: 1px solid #4A619C;"></td></tr>

						<tr><td valign=top align=right><font size=2 face=Verdana, Geneva, sans-serif>Upload CSV file:</td><td>&nbsp;</td><td align=left><input type=file id="csv_file" name="csv_file" value="{csv_file}" size=20></td></tr>

						<tr><td align=right>&nbsp;</td><td>&nbsp;</td><td align=left><font size=2 face=Verdana, Geneva, sans-serif> Enter or select for upload CSV file with individual project data.<br><br> Please refer to the admin help guide or click the Help link to the right side in this section for more instructions.<br></td></tr>

						<tr><td align=right><font size=2 face=Verdana, Geneva, sans-serif>Or Copy&amp;Paste CSV file:</td><td>&nbsp;</td><td align=left><br><textarea rows=15 cols=90 name=csv_file_text>{csv_file_text}</textarea></td></tr>

						<tr><td valign=top>&nbsp;</td><td>&nbsp;</td><td><input name="header" type="checkbox" value="1" {header_checked}> <font size=2 face=Verdana, Geneva, sans-serif>CSV file has header with column names, skip it.<br><br></td></tr>
						</table></p>

						<h3><font color="#000000" face=Verdana, Geneva, sans-serif size=2><b>**Configure Your Blog Here**</b></font></h3>
						<p><table border="0" cellpadding="2" cellspacing="5">
                        <tr><td colspan="4"><font size=2 face=Verdana, Geneva, sans-serif color="#FF0000">Login into Master Blog WordPress Admin Area to Configure (open in new window):</font><br><br><a target="_blank" href="admin.php?action=login_to_master_blog&masterbog_profile_id={profile_id}">Click Here</a>
                        </td></tr>
						</table></p>

                        </div></td></tr>

                        <tr><td align="left" colspan="2">
                        	<font size="2" face="Verdana, Geneva, sans-serif">
                        	<br><br>
                        	<input type="submit" name="create_it" value="Create Projects >>" class="cssvsc2" onClick="return fsubmitted(this.name)" > Click to just create individual projects in WPMdx for later editing and installation one by one.
                        	<!--
                            <br><br>
                        	<input type=checkbox name=in_background>Check to install in background and get results to admin email.
                            -->
                        	<br><br>
                        	<input type="submit" name="install" value="Install Blogs >>" class="cssvsc2" onClick="return fsubmitted(this.name)" > Click to Create and Install/Overwrite projects
                            <br><br>
                            <font size=2 face=Verdana, Geneva, sans-serif color="#FF0000">Note:</font> Once blog is successfully installed, this project will be converted to Default WordPress project and be listed in <i>List/Edit/Update Blogs</i>.
                        	</font>
                         </td></tr>

					</form>

                    	</table>
					</td></tr>
				</table>
			</td></tr>
		</table>
	</td></tr>
</table>
{FOOTER}
