		<div class="middle" id="anchor-content">
            <div id="page:main-container">
				<div class="columns ">
                
					<div class="side-col" id="page:left">
    					<h3>Documents</h3>
						
                        <ul id="isoft" class="tabs">
    						<li >
        						<a href="docs_manage.php" id="isoft_group_1" name="group_1" title="Manage Documents" class="tab-item-link ">
                                    <span>
                                        <span class="changed" title=""></span>
                                        <span class="error" title=""></span>
                                        Manage Documents
                                    </span>
        						</a>
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                <div id="isoft_group_1_content" style="display:none;">
                                	<div class="entry-edit">
                                        <div class="entry-edit-head">
                                            <h4 class="icon-head head-edit-form fieldset-legend">Edit Document</h4>
                                            <div class="form-buttons">

                                            </div>
                                    	</div>

                                        <fieldset id="group_fields4">
                                            <div class="hor-scroll">
                                                <table cellspacing="0" class="form-list">
                                                <tbody>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Document ID </label></td>
                                                        <td class="value">
                                                        	{$doc.DID}
                                                        </td>
                                                        <td class="scope-label"></td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Owner </label></td>
                                                        <td class="value">
                                                        	<select name="USERID" id="USERID">
                                                            {insert name=get_all_members assign=listallmembers}
                                                            {section name=i loop=$listallmembers}
                                                            <option value="{$listallmembers[i].USERID}" {if $doc.USERID eq $listallmembers[i].USERID}selected{/if}>{$listallmembers[i].username|stripslashes}</option>
                                                            {/section}
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[OWNER OF THE DOCUMENT]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Title </label></td>
                                                        <td class="value">
                                                        	<input id="title" name="title" value="{$doc.title|stripslashes}" class=" required-entry required-entry input-text" type="text"/>
                                                        </td>
                                                        <td class="scope-label">[TITLE OF THE DOCUMENT]</td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Description </label></td>
                                                        <td class="value">
                                                        	<textarea id="vdescription" name="vdescription" class=" textarea" type="textarea" >{$doc.description|stripslashes}</textarea>
                                                        </td>
                                                        <td class="scope-label">[DESCRIPTION OF THE DOCUMENT]</td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Tags </label></td>
                                                        <td class="value">
                                                        	<input id="tags" name="tags" value="{$doc.tags|stripslashes}" class=" required-entry required-entry input-text" type="text"/>
                                                        </td>
                                                        <td class="scope-label">[TAGS OF THE DOCUMENT]</td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Category </label></td>
                                                        <td class="value">
                                                        	<select name="categories" id="categories">
                                                            {insert name=get_all_cats assign=listallcats}
                                                            {section name=i loop=$listallcats}
                                                            <option value="{$listallcats[i].CATID}" {if $doc.categories eq $listallcats[i].CATID}selected{/if}>{$listallcats[i].name|stripslashes}</option>
                                                            {/section}
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[CATEGORY OF THE DOCUMENT]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Broadcast </label></td>
                                                        <td class="value">
                                                        	<select name="public" id="public">
                                                            <option value="1" {if $doc.public eq 1}selected{/if}>Public</option>
                                                            <option value="0" {if $doc.public eq 0}selected{/if}>Private</option>
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[WHO CAN VIEW THIS DOCUMENT]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Date Added </label></td>
                                                        <td class="value">
                                                        	{$doc.time_added|date_format:"%b %e, %Y"}
                                                        </td>
                                                        <td class="scope-label"></td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Views </label></td>
                                                        <td class="value">
                                                        	<input id="viewcount" name="viewcount" value="{$doc.viewcount}" class=" required-entry required-entry input-text" type="text"/>
                                                        </td>
                                                        <td class="scope-label">[DOCUMENT VIEWS]</td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Downloads </label></td>
                                                        <td class="value">
                                                        	<input id="downloadcount" name="downloadcount" value="{$doc.downloadcount}" class=" required-entry required-entry input-text" type="text"/>
                                                        </td>
                                                        <td class="scope-label">[DOCUMENT DOWNLOADS]</td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Featured </label></td>
                                                        <td class="value">
                                                        	<select name="featured" id="featured">
                                                            <option value="1" {if $doc.featured eq 1}selected{/if}>Yes</option>
                                                            <option value="0" {if $doc.featured eq 0}selected{/if}>No</option>
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[FEATURE THE DOCUMENT]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Votes </label></td>
                                                        <td class="value">
                                                        	<input id="ratingcount" name="ratingcount" value="{$doc.ratingcount}" class=" required-entry required-entry input-text" type="text"/>
                                                        </td>
                                                        <td class="scope-label">[NUMBER OF MEMBERS WHO RATED THE DOCUMENT]</td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Rating </label></td>
                                                        <td class="value">
                                                        	<input id="rating" name="rating" value="{$doc.rating}" class=" required-entry required-entry input-text" type="text"/>
                                                        </td>
                                                        <td class="scope-label">[AVERAGE DOCUMENT RATING]</td>
                                                            <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Allow Comments </label></td>
                                                        <td class="value">
                                                        	<select name="allowcomments" id="allowcomments">
                                                            <option value="1" {if $doc.allowcomments eq 1}selected{/if}>Yes</option>
                                                            <option value="0" {if $doc.allowcomments eq 0}selected{/if}>No</option>
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[ALLOW COMMENTS FOR THIS DOCUMENT]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Allow Ratings </label></td>
                                                        <td class="value">
                                                        	<select name="allowratings" id="allowratings">
                                                            <option value="1" {if $doc.allowratings eq 1}selected{/if}>Yes</option>
                                                            <option value="0" {if $doc.allowratings eq 0}selected{/if}>No</option>
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[ALLOW RATINGS FOR THIS DOCUMENT]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Allow Embeds </label></td>
                                                        <td class="value">
                                                        	<select name="allowembeds" id="allowembeds">
                                                            <option value="1" {if $doc.allowembeds eq 1}selected{/if}>Yes</option>
                                                            <option value="0" {if $doc.allowembeds eq 0}selected{/if}>No</option>
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[ALLOW EMBEDS FOR THIS DOCUMENT]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Allow Downloads </label></td>
                                                        <td class="value">
                                                        	<select name="allowdownloads" id="allowdownloads">
                                                            <option value="1" {if $doc.allowdownloads eq 1}selected{/if}>Yes</option>
                                                            <option value="0" {if $doc.allowdownloads eq 0}selected{/if}>No</option>
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[ALLOW DOWNLOADS FOR THIS DOCUMENT]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="status">Active </label></td>
                                                        <td class="value">
                                                        	<select name="active" id="active">
                                                            <option value="1" {if $doc.active eq 1}selected{/if}>Yes</option>
                                                            <option value="0" {if $doc.active eq 0}selected{/if}>No</option>
                                                            </select>
                                                        </td>
                                                        <td class="scope-label">[DOCUMENT STATUS]</td>
                                                        <td><small></small></td>
                                                    </tr>
                                                    <tr class="hidden">
                                                        <td class="label"><label for="name">Thumbnail </label></td>
                                                        <td class="value">
                                                        	<img src="{$thumburl}/{$doc.DID}.jpg" width="86" />
                                                        </td>
                                                        <td class="scope-label"></td>
                                                            <td><small></small></td>
                                                    </tr>
                                                </tbody>
                                                </table>
                                            </div>
                                        </fieldset>
									</div>
								</div>
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                                
                               
                                
                                
                                
    						</li>
                            
                            <li >
                                <a href="docs_validate.php" id="isoft_group_2" name="group_2" title="Validate Documents" class="tab-item-link">
                                	<span>
                                    	<span class="changed" title=""></span>
                                        <span class="error" title=""></span>
                                        Validate Documents
                                    </span>
                                </a>
                                <div id="isoft_group_2_content" style="display:none;"></div>
                            </li>
    
                            <li >
                                <a href="docs_featured.php" id="isoft_group_3" name="group_3" title="Featured Documents" class="tab-item-link">
                                	<span>
                                    	<span class="changed" title=""></span>
                                        <span class="error" title=""></span>
                                        Featured Documents
                                    </span>
                                </a>
                                <div id="isoft_group_3_content" style="display:none;"></div>
                            </li>
                            
                            <li >
                                <a href="docs_reported.php" id="isoft_group_4" name="group_4" title="Reported Documents" class="tab-item-link">
                                	<span>
                                    	<span class="changed" title=""></span>
                                        <span class="error" title=""></span>
                                        Reported Documents
                                    </span>
                                </a>
                                <div id="isoft_group_4_content" style="display:none;"></div>
                            </li>
    
						</ul>
                        
						<script type="text/javascript">
                            isoftJsTabs = new varienTabs('isoft', 'main_form', 'isoft_group_1', []);
                        </script>
                        
					</div>
                    
					<div class="main-col" id="content">
						<div class="main-col-inner">
							<div id="messages">
                            {if $message ne "" OR $error ne ""}
                            	{include file="administrator/show_message.tpl"}
                            {/if}
                            </div>

                            <div class="content-header">
                               <h3 class="icon-head head-products">Documents - Edit Document</h3>
                               <p class="content-buttons form-buttons">
                                    <button  id="id_be616be1324d8ae4516f276d17d34b9c" type="button" class="scalable save" onclick="document.main_form.submit();" style=""><span>Save Changes</span></button>			
                                </p>
                            </div>
                            
                            <form action="docs_edit.php?DID={$smarty.request.DID}" method="post" id="main_form" name="main_form" enctype="multipart/form-data">
                            	<input type="hidden" id="submitform" name="submitform" value="1" >
                            	<div style="display:none"></div>
                            </form>
						</div>
					</div>
				</div>

                        </div>
        </div>