<div id="ch_<?php 
echo $id;
?>
" class="printChapter">
    <?php 
echo $name;
?>
    <?php 
removeButton('removeChapter(' . $id . ')');
?>
    <?php 
editButton(site_url('panel/chapter/index/' . $id));
?>
</div>
    ?>
" value="<?php 
    echo $p->title_pl;
    ?>
" onchange="change_photo_title(this,'pl')" /><br />
        Title: <input size="25" type="text" id="fde_en_<?php 
    echo $p->id;
    ?>
" value="<?php 
    echo $p->title_en;
    ?>
" onchange="change_photo_title(this,'en')" /><br />
    </div>

    <?php 
    removeButton('del_photo(' . $p->id . ')', 'resources/images/page/panel/delbutt.gif');
    ?>
<!--    <a id="dp_<?php 
    echo $p->id;
    ?>
" onclick="del_photo(this);" class="delButton">
        <img src="<?php 
    echo base_url();
    ?>
files/images/page/delbutt.gif" />
    </a>-->

    <hr style="clear: both;"/>

    <img id="gfx_<?php 
    echo $p->id;
    echo $g->id;
    ?>
">

    <div class="photoTitleDiv">
        <input type="text" size="30" id="gl_nm_pl_<?php 
    echo $g->id;
    ?>
" value="<?php 
    echo $g->name;
    ?>
" onchange="change_album_name(this)" /><br />
    </div>

    <?php 
    removeButton('del_album(' . $g->id . ')');
    ?>

    <div class="editButton"><?php 
    echo anchor('panel/albums/edit/' . $g->id, 'Zdjęcia');
    ?>
</div>

    <br style="clear: both;">

    <div class="photoFileDiv">
        UTWORZONY: <?php 
    echo $g->date;
    ?>
 | ZDJĘĆ: <?php 
    echo $g->numPhotos;
<?php

//var_dump ($agas);
//var_dump ($albums);
?>

<div id="ch_<?php 
echo $aga->id;
?>
" class="printChapter" style="width: 200px;">
    <?php 
//echo $name;
?>
    <?php 
removeButton('removeAlbumAssoc(' . $aga->id . ')');
?>
    <?php 
//editButton(site_url('panel/chapter/index/'.$id));
?>
    
    <select id="ml_<?php 
echo $aga->id;
?>
" style="float:left; <?php 
if (0) {
    echo 'background-color: red;';
}
?>
" onchange="assocGalleryAlbum(this);">
                        
        <?php 
</div>
    <!--<a id="dg_<?php 
    echo $g->id;
    ?>
" onclick="del_file(<?php 
    echo $g->id;
    ?>
,'<?php 
    echo $g->file;
    ?>
');" style="cursor: pointer; float: right; background-color: transparent;"><img src="<?php 
    echo base_url();
    ?>
files/images/page/delbutt.gif" /></a>-->    
    <?php 
    removeButton('del_file(' . $g->id . ')', 'resources/images/page/panel/delbutt.gif');
    ?>
    <img class="filemini" style="" src="<?php 
    echo base_url();
    ?>
resources/images/photo/mini/<?php 
    echo $g->file;
    ?>
" />
    <br /><br />
    <?php 
    echo $g->date;
    ?>
    <div style="clear: both;"></div>

    </div>