2009-12-25 17:13:06 +00:00
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
2010-01-14 15:29:09 +00:00
|
|
|
<title>{cbtitle sub_sep='›'}</title>
|
2009-12-25 17:13:06 +00:00
|
|
|
<link href="{$theme}/main.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="{$theme}/slidemenu.css" rel="stylesheet" type="text/css" />
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
var baseurl = "{$baseurl}";
|
|
|
|
var imageurl = "{$imageurl}";
|
|
|
|
</script>
|
2010-01-17 13:26:50 +00:00
|
|
|
<script type="text/javascript" src="{$js}/swfobject.js"></script>
|
2010-03-17 08:45:57 +00:00
|
|
|
<script type="text/javascript" src="{$js}/swfobject.obj.js"></script>
|
|
|
|
<script type="text/javascript" src="{$js}/flashobject.js"></script>
|
2009-12-25 17:13:06 +00:00
|
|
|
<script type="text/javascript" src="{$js}/functions.js"></script>
|
|
|
|
<script type="text/javascript" src="{$js}/admin_functions.js"></script>
|
|
|
|
<script type="text/javascript" src="{$js}/checkall.js"></script>
|
|
|
|
<script type="text/javascript" src="{$js}/jquery.js"></script>
|
|
|
|
<script type="text/javascript" src="{$js}/ui/jquery-ui-1.7.2.custom.min.js"></script>
|
|
|
|
<script type="text/javascript" src="{$js}/jquery_plugs/hover_intent.js"></script>
|
|
|
|
<script type="text/javascript" src="{$js}/jquery_plugs/cb.tabs.js"></script>
|
2010-01-05 09:47:10 +00:00
|
|
|
<script type="text/javascript" src="{$js}/jquery_plugs/cookie.js"></script>
|
2010-07-18 20:14:21 +00:00
|
|
|
<script type="text/javascript" src="{$js}/jquery_plugs/timer.js"></script>
|
2009-12-25 17:13:06 +00:00
|
|
|
<link rel="stylesheet" href="{$js}/jquery_plugs/css/jquery.tooltip.css" />
|
|
|
|
<link rel="stylesheet" href="{$js}/jquery_plugs/css/screen.css" />
|
2010-01-05 09:47:10 +00:00
|
|
|
<link rel="stylesheet" href="{$js}/jquery_plugs/css/tipsy.css" />
|
2009-12-25 17:13:06 +00:00
|
|
|
<link rel="stylesheet" href="{$js}/ui/css/ui-lightness/jquery-ui-1.7.2.custom.css" />
|
|
|
|
<script src="{$js}/jquery_plugs/jquery.bgiframe.js" type="text/javascript"></script>
|
|
|
|
<script src="{$js}/jquery_plugs/jquery.dimensions.js" type="text/javascript"></script>
|
|
|
|
<script src="{$js}/jquery_plugs/jquery.tooltip.pack.js" type="text/javascript"></script>
|
|
|
|
<script src="{$js}/jquery_plugs/chili-1.7.pack.js" type="text/javascript"></script>
|
|
|
|
<script src="{$js}/jquery_plugs/compressed/jeditable.js" type="text/javascript"></script>
|
2010-01-05 09:47:10 +00:00
|
|
|
<script src="{$js}/jquery_plugs/jquery.tipsy.js" type="text/javascript"></script>
|
2009-12-25 17:13:06 +00:00
|
|
|
|
2010-01-12 14:14:29 +00:00
|
|
|
{if $Cbucket->AdminJSArray}
|
|
|
|
<!-- Including JS Files-->
|
|
|
|
{foreach from=$Cbucket->AdminJSArray key=file item=type}
|
|
|
|
{if $curActive == $type || $type=='global' }
|
|
|
|
{include_js type=$type file=$file}
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
<!-- Including JS Files-->
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
{if $Cbucket->admin_header_files}
|
|
|
|
<!-- Including Headers -->
|
|
|
|
{foreach from=$Cbucket->admin_header_files key=file item=type}
|
|
|
|
{include_header type=$type file=$file}
|
|
|
|
{/foreach}
|
|
|
|
<!-- Ending Headers -->
|
|
|
|
{/if}
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-12-25 17:13:06 +00:00
|
|
|
<!-- Including Nice Edit -->
|
2010-01-01 13:01:53 +00:00
|
|
|
<script type="text/javascript" src="{$js}/nicedit/nicEdit.js"></script>
|
2009-12-25 17:13:06 +00:00
|
|
|
{literal}
|
|
|
|
|
|
|
|
<script type="text/javascript" charset="utf-8">
|
|
|
|
|
|
|
|
function makeTall(divid){ $('#'+divid).animate({"height":209},200);}
|
|
|
|
function makeShort(divid){ $('#'+divid).animate({"height":0},200);}
|
|
|
|
var on = false;
|
|
|
|
function switch_func(divid)
|
|
|
|
{
|
|
|
|
if(on)
|
|
|
|
{
|
|
|
|
makeShort(divid);
|
|
|
|
on = false;
|
|
|
|
}else{
|
|
|
|
makeTall(divid);
|
|
|
|
on = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('.edit_lang').editable(baseurl+'/actions/update_phrase.php', {
|
|
|
|
// cancel : 'Cancel',
|
|
|
|
// submit : 'OK',
|
|
|
|
indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">',
|
|
|
|
tooltip : 'Click to edit...',
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('.edit_comment').editable(baseurl+'/actions/edit_comment.php', {
|
|
|
|
// cancel : 'Cancel',
|
|
|
|
// submit : 'OK',
|
|
|
|
indicator : '<img src="'+baseurl+'/images/icons/progIndicator.gif">',
|
|
|
|
tooltip : 'Click to edit...',
|
|
|
|
});
|
2010-10-06 08:24:40 +00:00
|
|
|
|
|
|
|
|
2010-01-05 09:47:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
$('.widgets-wrap').sortable({
|
|
|
|
connectWith: '.widgets-wrap',
|
|
|
|
handle: 'h2',
|
|
|
|
cursor: 'move',
|
|
|
|
placeholder: 'placeholder',
|
|
|
|
forcePlaceholderSize: true,
|
|
|
|
opacity: 0.4,
|
|
|
|
stop: function(event, ui){
|
|
|
|
$(ui.item).find('h2').click();
|
|
|
|
}
|
|
|
|
})
|
2011-01-06 15:07:18 +00:00
|
|
|
|
|
|
|
$('#HeadMenu').sortable({
|
|
|
|
cursor : 'move',
|
|
|
|
opacity : '0.4',
|
|
|
|
forcePlaceholderSize: true
|
|
|
|
})
|
2010-01-05 09:47:10 +00:00
|
|
|
|
|
|
|
|
|
|
|
$('.dragbox').each(function(){
|
|
|
|
$(this).hover(function(){
|
|
|
|
$(this).find('h2').addClass('collapse');
|
|
|
|
}, function(){
|
|
|
|
$(this).find('h2').removeClass('collapse');
|
|
|
|
})
|
|
|
|
.find('h2').hover(function(){
|
|
|
|
$(this).find('.configure').css('visibility', 'visible');
|
|
|
|
}, function(){
|
|
|
|
$(this).find('.configure').css('visibility', 'hidden');
|
|
|
|
})
|
|
|
|
.click(function(){
|
|
|
|
$(this).siblings('.dragbox-content').toggle();
|
|
|
|
})
|
|
|
|
.end()
|
|
|
|
.find('.configure').css('visibility', 'hidden');
|
2009-12-25 17:13:06 +00:00
|
|
|
});
|
2010-01-05 09:47:10 +00:00
|
|
|
|
|
|
|
$('.tipsy_tip').tipsy({gravity: 'w'});
|
|
|
|
|
|
|
|
});
|
2010-12-14 13:53:51 +00:00
|
|
|
|
|
|
|
</script>
|
|
|
|
{/literal}
|
2010-01-05 09:47:10 +00:00
|
|
|
|
2010-12-14 13:53:51 +00:00
|
|
|
{literal}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function(){
|
2010-01-05 09:47:10 +00:00
|
|
|
|
2010-12-14 13:53:51 +00:00
|
|
|
$('#ratios input[name=photo_ratio]').click(function()
|
|
|
|
{
|
|
|
|
var ratio = this.value;
|
|
|
|
ratio_part = ratio.split(':');
|
|
|
|
width = ratio_part[0];
|
|
|
|
height = ratio_part[1];
|
|
|
|
|
|
|
|
ThumbHeight = $('#image_width').val() / width * height;
|
|
|
|
ThumbHeight = Math.ceil(ThumbHeight);
|
|
|
|
|
|
|
|
MedHeight = $('#med_width').val() / width * height;
|
|
|
|
MedHeight = Math.ceil(MedHeight);
|
|
|
|
|
|
|
|
$('#image_height').val(ThumbHeight);
|
|
|
|
$('#med_height').val(MedHeight);
|
|
|
|
});
|
|
|
|
|
|
|
|
$('#image_width,#med_width').bind(
|
|
|
|
{
|
|
|
|
click: function()
|
|
|
|
{
|
|
|
|
$(this).select();
|
|
|
|
},
|
|
|
|
|
|
|
|
focusout: function()
|
|
|
|
{
|
|
|
|
var ratio = $('#ratios input:checked').val();
|
|
|
|
id = this.id;
|
|
|
|
parts = id.split('_');
|
|
|
|
word = parts[0];
|
|
|
|
|
2009-12-25 17:13:06 +00:00
|
|
|
|
2010-12-14 13:53:51 +00:00
|
|
|
ratio_part = ratio.split(':');
|
|
|
|
width = ratio_part[0];
|
|
|
|
height = ratio_part[1];
|
|
|
|
|
|
|
|
newHeight = this.value / width * height;
|
|
|
|
newHeight = Math.ceil(newHeight);
|
|
|
|
$('input[id="'+word+'_height"]').val(newHeight);
|
|
|
|
},
|
|
|
|
|
|
|
|
keypress: function(event)
|
|
|
|
{
|
|
|
|
if(event.which == '10')
|
|
|
|
{
|
|
|
|
var ratio = $('#ratios input:checked').val();
|
|
|
|
id = this.id;
|
|
|
|
parts = id.split('_');
|
|
|
|
word = parts[0];
|
|
|
|
|
|
|
|
ratio_part = ratio.split(':');
|
|
|
|
width = ratio_part[0];
|
|
|
|
height = ratio_part[1];
|
|
|
|
|
|
|
|
newHeight = this.value / width * height;
|
|
|
|
newHeight = Math.ceil(newHeight);
|
|
|
|
$('input[id="'+word+'_height"]').val(newHeight);
|
|
|
|
this.blur();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
2009-12-25 17:13:06 +00:00
|
|
|
{/literal}
|
|
|
|
</head>
|