Skip to content

Instantly share code, notes, and snippets.

.something {
.something-else {
}
}
/**
* finish(): close database connections, etc.
*
*/
public static function finish() {
// NOTE: DO 27 Aug 2012: We DON'T want to explictly close the database here, because
// Zend's session save code still needs to write out the session data. If we closed it
// Zend would simply open another connection, doubling the load on our database server.
// Instead we let PHP auto-close when we're done.
// $GLOBALS['db']->closeConnection();
$('select.select').each(function(){
var title = $(this).attr('title');
if( $('option:selected', this).val() != '' ) title = $('option:selected',this).text();
$(this)
.css({'z-index':10,'opacity':0,'-khtml-appearance':'none'})
.after('<span class="select">' + title + '</span>')
.on('change',function(e){
val = $('option:selected',this).text();
$(this).next().text(val);
})