<?php
$this->load_template('_header.php');
$this->load_template('_top.php');
?>
<script type="text/javascript" src="<?php echo $C->SITE_URL?>themes/<?php echo $C->THEME ?>/js/js_dashboard.js"></script>
<div id="generalspace">
        
    <div id="container">
    
    	<div id="column1"><?php $this->load_template('_verticalmenu-dashboard.php'); ?></div>
        
        <div id="column2">
		
            <div id="dashboard2">

				<div class="boxdash">                    
    
                    <div class="title"><?php echo $this->lang('dashboard_myalbums_title'); ?></div>
                    
					<div class="spaceinfo">
                    
                        <div id="formedit">
                        	<div class="editarea">
                            
                            	<div><span class="linkblue2">&laquo; <a href="<?php echo $C->SITE_URL?>dashboard/myalbums"><?php echo $this->lang('dashboard_myalbums_txt_lback')?></a></span></div>
                                    
                                <div class="subtitle mrg10T"><?php echo $this->lang('dashboard_myalbums_txt_editalbum'); ?></div>
            
                                <div id="form01" class="mrg30B">
                                    <form id="form1" name="form1" method="post" action="">
                                    <div class="mrg10T grey1"><?php echo $this->lang('dashboard_myalbums_txt_namealbum')?>:</div>
                                    <div><input name="namealbum" type="text" id="namealbum" class="boxinput withbox" value="<?php echo $D->namealbum?>"/></div>

                                    <div class="mrg10T grey1"><?php echo $this->lang('dashboard_myalbums_txt_descriptionalbum')?>:</div>
                                    <div><textarea name="descriptionalbum" rows="3" class="boxinput withbox" id="descriptionalbum"><?php echo $D->description?></textarea></div>

                                    <div class="mrg10T grey1"><?php echo $this->lang('dashboard_myalbums_txt_privacy')?></div>
                                    <div><select name="privacy" id="privacy" class="boxinput withbox">
                                      <option value="0" <?php echo($D->privacy==0?'Selected':'')?>><?php echo $this->lang('dashboard_myalbums_txt_public')?></option>
                                      <option value="1" <?php echo($D->privacy==1?'Selected':'')?>><?php echo $this->lang('dashboard_myalbums_txt_friends')?></option>
                                      <option value="2" <?php echo($D->privacy==2?'Selected':'')?>><?php echo $this->lang('dashboard_myalbums_txt_onlyme')?></option>
                                    </select></div>
									<div id="msgok" class="yellowbox"></div>
                                    <div id="msgerror" class="redbox"></div>
                                    <div class="mrg10T mrg5B">
                                        <span><input type="submit" name="bsave" id="bsave" value="<?php echo $this->lang('dashboard_myalbums_txt_bupdate')?>" class="bblue hand"/></span>
                                    </div>
              
                                  </form>
                                </div>
                        
                            </div>
                        </div>

						<script>
                        var codea = '<?php echo $D->codealbum?>';
                        var txt_error_namealbum='<?php echo $this->lang('dashboard_myalbums_error_namealbum')?>';
                        $('#bsave').click(function(){
                            updateAlbum('#msgerror', '#msgok', '#bsave');
                            return false;
                        });

                        </script>

					</div>

				</div>

            </div>
        
        
        </div>
        
        <div id="divseparator" class="sh"></div>
        
        <div id="column3"><?php $this->load_template('_accessories-dashboard.php'); ?></div>
        
        <div class="sh"></div>
    
    </div>
            
</div>    

<?php
$this->load_template('_foot.php');
$this->load_template('_footer.php');
?>