initial commit

This commit is contained in:
Ben Ramey
2017-03-02 21:57:21 -06:00
commit fd8ad64063
22097 changed files with 1960930 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
K 25
svn:wc:ra_dav:version-url
V 74
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event
END

View File

@@ -0,0 +1,37 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
actions
dir
config
dir
templates
dir

View File

@@ -0,0 +1,11 @@
K 25
svn:wc:ra_dav:version-url
V 82
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/actions
END
actions.class.php
K 25
svn:wc:ra_dav:version-url
V 100
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/actions/actions.class.php
END

View File

@@ -0,0 +1,62 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/actions
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
actions.class.php
file
2010-07-31T05:41:51.000000Z
2078e5c11f949799e77d28b3431cbb37
2009-05-28T02:14:48.119086Z
25
ben
1889

View File

@@ -0,0 +1,66 @@
<?php
/**
* event actions.
*
* @package pae
* @subpackage event
* @author Your name here
* @version SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
*/
class eventActions extends autoeventActions
{
/**
* Custom event saving functionality
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function updateEventFromRequest()
{
parent::updateEventFromRequest();
$request = $this->getRequest();
// save the titles
foreach($request->getParameter('title') as $culture => $value)
{
$this->event->setCulture($culture);
$this->event->setTitle($value);
}
// save the descriptions
foreach($request->getParameter('description') as $culture => $value)
{
$this->event->setCulture($culture);
$this->event->setDescription($value);
}
// save the event picture
if($request->hasFiles())
{
foreach($request->getFileNames() as $fileName)
{
if($request->getFileSize($fileName) <= 0)
continue;
$eventImagePath = sfConfig::get('sf_web_dir').'/images/events';
$pictureName = preg_replace("/\W/", "", $this->event->getTitle()) . $request->getFileExtension($fileName);
$request->moveFile($fileName, $eventImagePath.'/'.$pictureName);
// resize the image to the standard size
$image = new phMagick($eventImagePath.'/'.$pictureName);
$image->setDestination($eventImagePath.'/'.$pictureName);
$image->resize(400, 0);
// create the thumbnail image
$thumbnail = $image;
$thumbnail->setDestination($eventImagePath.'/thumb_'.$pictureName);
$thumbnail->resize(70,0);
// save the image name in the employee
$this->event->setPicture($pictureName);
}
}
}
}

View File

@@ -0,0 +1,66 @@
<?php
/**
* event actions.
*
* @package pae
* @subpackage event
* @author Your name here
* @version SVN: $Id: actions.class.php 2288 2006-10-02 15:22:13Z fabien $
*/
class eventActions extends autoeventActions
{
/**
* Custom event saving functionality
*
* @return void
* @author Benjamin Ramey <ben.ramey@gmail.com>
**/
public function updateEventFromRequest()
{
parent::updateEventFromRequest();
$request = $this->getRequest();
// save the titles
foreach($request->getParameter('title') as $culture => $value)
{
$this->event->setCulture($culture);
$this->event->setTitle($value);
}
// save the descriptions
foreach($request->getParameter('description') as $culture => $value)
{
$this->event->setCulture($culture);
$this->event->setDescription($value);
}
// save the event picture
if($request->hasFiles())
{
foreach($request->getFileNames() as $fileName)
{
if($request->getFileSize($fileName) <= 0)
continue;
$eventImagePath = sfConfig::get('sf_web_dir').'/images/events';
$pictureName = preg_replace("/\W/", "", $this->event->getTitle()) . $request->getFileExtension($fileName);
$request->moveFile($fileName, $eventImagePath.'/'.$pictureName);
// resize the image to the standard size
$image = new phMagick($eventImagePath.'/'.$pictureName);
$image->setDestination($eventImagePath.'/'.$pictureName);
$image->resize(400, 0);
// create the thumbnail image
$thumbnail = $image;
$thumbnail->setDestination($eventImagePath.'/thumb_'.$pictureName);
$thumbnail->resize(70,0);
// save the image name in the employee
$this->event->setPicture($pictureName);
}
}
}
}

View File

@@ -0,0 +1,11 @@
K 25
svn:wc:ra_dav:version-url
V 81
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/config
END
generator.yml
K 25
svn:wc:ra_dav:version-url
V 95
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/config/generator.yml
END

View File

@@ -0,0 +1,62 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/config
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
generator.yml
file
2010-07-31T05:41:51.000000Z
8fcecea6f1e4d05af8f2ee701b9270f0
2009-05-28T02:14:48.119086Z
25
ben
618

View File

@@ -0,0 +1,27 @@
generator:
class: sfPropelAdminGenerator
param:
model_class: Event
theme: default
list:
max_per_page: 10
object_actions:
_edit: ~
_delete: ~
actions:
_create: ~
display: [_listPicture, _listTitle, expires_on]
fields:
list_picture:
name: "Picture"
list_title:
name: "Title"
edit:
fields:
edit_description:
name: "Descriptions"
edit_title:
name: "Titles"
display: [_editTitle, expires_on, _editPicture, _editDescription]

View File

@@ -0,0 +1,27 @@
generator:
class: sfPropelAdminGenerator
param:
model_class: Event
theme: default
list:
max_per_page: 10
object_actions:
_edit: ~
_delete: ~
actions:
_create: ~
display: [_listPicture, _listTitle, expires_on]
fields:
list_picture:
name: "Picture"
list_title:
name: "Title"
edit:
fields:
edit_description:
name: "Descriptions"
edit_title:
name: "Titles"
display: [_editTitle, expires_on, _editPicture, _editDescription]

View File

@@ -0,0 +1,35 @@
K 25
svn:wc:ra_dav:version-url
V 84
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/templates
END
_list_title.php
K 25
svn:wc:ra_dav:version-url
V 100
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/templates/_list_title.php
END
_edit_picture.php
K 25
svn:wc:ra_dav:version-url
V 102
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/templates/_edit_picture.php
END
_edit_title.php
K 25
svn:wc:ra_dav:version-url
V 100
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/templates/_edit_title.php
END
_list_picture.php
K 25
svn:wc:ra_dav:version-url
V 102
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/templates/_list_picture.php
END
_edit_description.php
K 25
svn:wc:ra_dav:version-url
V 106
/svn/!svn/ver/25/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/templates/_edit_description.php
END

View File

@@ -0,0 +1,198 @@
10
dir
55
http://barnabas/svn/pae.co.at/trunk/proactiveenglish/apps/admin/modules/event/templates
http://barnabas/svn
2009-05-28T02:14:48.119086Z
25
ben
5f44b648-3ce2-dc11-a6be-00b0d029fcea
_list_title.php
file
2010-07-31T05:41:51.000000Z
a3796b76790ce4dd6b7124cc2ff757a3
2009-05-28T02:14:48.119086Z
25
ben
58
_edit_picture.php
file
2010-07-31T05:41:51.000000Z
69e38bebd365593d6bb64360145c0487
2009-05-28T02:14:48.119086Z
25
ben
134
_edit_title.php
file
2010-07-31T05:41:51.000000Z
00a96b80fe2b41df153c3a35de2caad5
2009-05-28T02:14:48.119086Z
25
ben
258
_list_picture.php
file
2010-07-31T05:41:51.000000Z
755291279f0c467f06d60282437c0e0b
2009-05-28T02:14:48.119086Z
25
ben
61
_edit_description.php
file
2010-07-31T05:41:51.000000Z
9213de9edfb33d37e57bd17401eaad19
2009-05-28T02:14:48.119086Z
25
ben
316

View File

@@ -0,0 +1,8 @@
<p>
<label>English</label>
<?php $event->setCulture('en'); echo textarea_tag('description[en]', $event->getDescription(), 'rich=true size=100x12') ?>
</p>
<p>
<label>German</label>
<?php $event->setCulture('de'); echo textarea_tag('description[de]', $event->getDescription(), 'rich=true size=100x12') ?>
</p>

View File

@@ -0,0 +1,2 @@
<?php echo image_tag("events/thumb_".$event->getPicture(), array("class" => "event-thumb")) ?>
<?php echo input_file_tag("picture") ?>

View File

@@ -0,0 +1,8 @@
<p>
<label>English</label>
<?php $event->setCulture('en'); echo input_tag('title[en]', $event->getTitle(), 'size=80') ?>
</p>
<p>
<label>German</label>
<?php $event->setCulture('de'); echo input_tag('title[de]', $event->getTitle(), 'size=80') ?>
</p>

View File

@@ -0,0 +1 @@
<?php echo image_tag("events/thumb_".$event->getPicture()) ?>

View File

@@ -0,0 +1 @@
<?php $event->setCulture('en'); echo $event->getTitle() ?>

View File

@@ -0,0 +1,8 @@
<p>
<label>English</label>
<?php $event->setCulture('en'); echo textarea_tag('description[en]', $event->getDescription(), 'rich=true size=100x12') ?>
</p>
<p>
<label>German</label>
<?php $event->setCulture('de'); echo textarea_tag('description[de]', $event->getDescription(), 'rich=true size=100x12') ?>
</p>

View File

@@ -0,0 +1,2 @@
<?php echo image_tag("events/thumb_".$event->getPicture(), array("class" => "event-thumb")) ?>
<?php echo input_file_tag("picture") ?>

View File

@@ -0,0 +1,8 @@
<p>
<label>English</label>
<?php $event->setCulture('en'); echo input_tag('title[en]', $event->getTitle(), 'size=80') ?>
</p>
<p>
<label>German</label>
<?php $event->setCulture('de'); echo input_tag('title[de]', $event->getTitle(), 'size=80') ?>
</p>

View File

@@ -0,0 +1 @@
<?php echo image_tag("events/thumb_".$event->getPicture()) ?>

View File

@@ -0,0 +1 @@
<?php $event->setCulture('en'); echo $event->getTitle() ?>