CC-1724:Phone home statistic

- Fixed the bug where it didn't populate country dropdown box
This was due to default sql not popuplate country table correctly
- Changed 180*180 min log text to 200*200
- Changed text are size in support settings
- Client now sends base64encoded image to server.
This commit is contained in:
James Moon 2011-06-20 20:31:20 -07:00
parent 2fb721167c
commit dd4ea127fc
5 changed files with 251 additions and 250 deletions

View file

@ -70,15 +70,15 @@ class Application_Form_SupportPreferences extends Zend_Form_SubForm
));
// Station Description
$this->addElement('textarea', 'Description', array(
'label' => 'Station Description:',
'required' => false,
'class' => 'input_text_area',
'value' => Application_Model_Preference::GetStationDescription(),
'decorators' => array(
'ViewHelper'
)
));
$description = new Zend_Form_Element_Textarea('Description');
$description->class = 'input_text_area';
$description->setLabel('Station Description:')
->setRequired(false)
->setValue(Application_Model_Preference::GetStationDescription())
->setDecorators(array('ViewHelper'))
->setAttrib('ROWS','2')
->setAttrib('COLS','58');
$this->addElement($description);
// Station Logo
$upload = new Zend_Form_Element_File('Logo');

View file

@ -283,7 +283,7 @@ class Application_Model_Preference
$res = $CC_DBC->GetAll($sql);
$out = array();
foreach($res as $r){
$out[$r["iso_code"]] = $r["name"];
$out[$r["isocode"]] = $r["name"];
}
return $out;
}
@ -335,6 +335,7 @@ class Application_Model_Preference
$outputString .= $key.' : '.$out."\n";
}
if($returnArray){
$outputArray['LOGOIMG'] = Application_Model_Preference::GetStationLogo();
return $outputArray;
}else{
return $outputString;

View file

@ -116,7 +116,7 @@
<?php }?>
<dd id="Logo-element" class="block-display clearfix">
<?php echo $this->element->getElement('Logo') ?>
<div class="info-text"><p>Min. size: 180x180 Max. size: 600x600</p></div>
<div class="info-text"><p>Min. size: 200x200 Max. size: 600x600</p></div>
<?php if($this->element->getElement('Logo')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('Logo')->getMessages() as $error): ?>

View file

@ -138,7 +138,7 @@
<?php }?>
<?php echo $this->element->getElement('Logo') ?>
<p class="info-text">Min. size: 180x180 Max. size: 600x600</p>
<p class="info-text">Min. size: 200x200 Max. size: 600x600</p>
<?php if($this->element->getElement('Logo')->hasErrors()) : ?>
<ul class='errors'>
<?php foreach($this->element->getElement('Logo')->getMessages() as $error): ?>