96 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			96 lines
		
	
	
		
			4.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 | 
						|
<html>
 | 
						|
<head>
 | 
						|
  <title><%site_title%>: Modify a Link</title>
 | 
						|
<%--
 | 
						|
<script type="text/javascript" src="<%config.build_static_url%>/jquery/jquery.js"></script>
 | 
						|
<script type="text/javascript" src="<%config.build_static_url%>/jquery/jquery.lightbox-0.5.js"></script>
 | 
						|
<link rel="stylesheet" type="text/css" href="<%config.build_static_url%>/jquery/css/jquery.lightbox-0.5.css" media="screen" />
 | 
						|
--%>
 | 
						|
<%include include_common_head.html%>
 | 
						|
</head>
 | 
						|
<body id="modify">
 | 
						|
  <%~if ad_wallpaper%>
 | 
						|
  <%ad_wallpaper%>
 | 
						|
  <%~endif%>
 | 
						|
  <div class="container">
 | 
						|
    <%include include_header.html%>
 | 
						|
    <div class="main">
 | 
						|
      <div class="contentwrapper clearfix">
 | 
						|
        <div class="breadcrumb">
 | 
						|
          <%Links::Utils::format_title($main_title_loop, separator => ' > ', no_escape_separator => $no_escape_crumb_separator, include_home => 1, link_type => 2)%>
 | 
						|
        </div>
 | 
						|
 | 
						|
        <div class="content"><%-- start content--%>
 | 
						|
          <h1>Modify a Link</h1>
 | 
						|
          <%~ set megabytes = 1048576 ~%>
 | 
						|
          <%~ set image_cfg = Links::Plugins::get_plugin_user_cfg('SlideShow') ~%>
 | 
						|
          <%~ set image_size = image_cfg.max_upload_size / $megabytes ~%>
 | 
						|
          <%~ set image_size = round($image_size) ~%>
 | 
						|
          <%~ set video_max_size = Plugins::ConvertVideo::get_video_max_size() ~%>
 | 
						|
          <%~ set video_size = $video_max_size / $megabytes ~%>
 | 
						|
          <%~ set video_size = round($video_size) ~%>
 | 
						|
          <p><b>Note:</b> image files must be smaller than <% if image_size %><% image_size %><%else%>1<%endif%>MB and video files must be smaller than <% if video_size %><% video_size %><%else%>1<%endif%>MB.</p>
 | 
						|
 | 
						|
          <form id="modify_form" action="<%config.db_cgi_url%>/modify.cgi" enctype="multipart/form-data" method="post">
 | 
						|
            <input type="hidden" name="modify" value="1" />
 | 
						|
            <%~if LinkID%>
 | 
						|
            <input type="hidden" name="LinkID" value="<%escape_html LinkID%>" />
 | 
						|
            <input type="hidden" name="Current_ID" value="<%escape_html LinkID%>" />
 | 
						|
            <%~else%>
 | 
						|
            <%~if config.db_gen_category_list == 2%>
 | 
						|
            <noscript>
 | 
						|
            <%~endif%>
 | 
						|
            <p>
 | 
						|
              Please enter the URL of the link you wish to modify. Make sure it is identical to the one already in the database:
 | 
						|
            </p>
 | 
						|
            <div class="row required clear">
 | 
						|
              <label for="Current_URL" class="name">URL: <span>*</span></label>
 | 
						|
              <div class="value">
 | 
						|
                <input type="text" name="Current_URL" value="<%if Current_URL%><%escape_html Current_URL%><%endif%>" class="text" />
 | 
						|
              </div>
 | 
						|
            </div>
 | 
						|
            <%~if config.db_gen_category_list == 2%>
 | 
						|
            </noscript>
 | 
						|
            <div id="LinkID" class="row required clear" style="display: none">
 | 
						|
              <label class="name">Link: <span>*</span></label>
 | 
						|
              <div class="value wrappedtext">
 | 
						|
                <%~if Current_ID%>
 | 
						|
                <input type="hidden" name="Current_ID" value="<%escape_html Current_ID%>" />
 | 
						|
                <%~endif%>
 | 
						|
                <script type="text/javascript" src="<%config.build_static_url%>/treecats.js"></script>
 | 
						|
                <div id="treecats-links"></div>
 | 
						|
                <script type="text/javascript">
 | 
						|
                  var tcl = new treecats({ selectionMode : 'link', workspace : 'treecats-links', objName : 'tcl', inputName : 'Current_ID', cgiURL : '<%config.db_cgi_url%>', imageURL : '<%config.build_static_url%>/<%t%>/images' });
 | 
						|
                  tcl.load();
 | 
						|
                  </script>
 | 
						|
              </div>
 | 
						|
            </div>
 | 
						|
            <script type="text/javascript">
 | 
						|
                document.getElementById('LinkID').style.display = '';
 | 
						|
            </script>
 | 
						|
            <%~endif%>
 | 
						|
            <p>
 | 
						|
            Enter the new information (all of it, not just the changes) below:
 | 
						|
            </p>
 | 
						|
            <%~endif%>
 | 
						|
            <div class="dtable form addlink">
 | 
						|
              <%include include_form.html%>
 | 
						|
              <div class="drow actions">
 | 
						|
                <div class="dcell name"></div>
 | 
						|
                <div class="dcell value">
 | 
						|
                  <input type="submit" name="modify_submit" value="Modify" class="btn" />
 | 
						|
                </div>
 | 
						|
              </div>
 | 
						|
            </div>
 | 
						|
          </form>
 | 
						|
        </div><%-- end content --%>
 | 
						|
      </div>
 | 
						|
    </div>
 | 
						|
    <%include include_footer.html%>
 | 
						|
  </div>
 | 
						|
</body>
 | 
						|
<%~include include_global_js.html%>
 | 
						|
<%~include include_form.js%>
 | 
						|
</html>
 |