parent
ccf80ff9d3
commit
89fd0e92c0
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
/*
|
||||
http://bakery.cakephp.org/articles/Jippi/2007/03/25/null-behavior
|
||||
*/
|
||||
class NullBehavior extends ModelBehavior {
|
||||
var $settings = array();
|
||||
|
||||
/**
|
||||
* Enter description here...
|
||||
*
|
||||
* @param AppModel $model
|
||||
* @param unknown_type $config
|
||||
*/
|
||||
function setup(&$model, $config = array())
|
||||
{
|
||||
$this->settings[$model->name] = $config;
|
||||
}
|
||||
|
||||
/**
|
||||
* Enter description here...
|
||||
*
|
||||
* @param AppModel $model
|
||||
*/
|
||||
function beforeSave(&$model)
|
||||
{
|
||||
foreach ($this->settings[$model->name] as $field)
|
||||
{
|
||||
if(
|
||||
true === array_key_exists($field,$model->data[$model->name]) &&
|
||||
true === empty($model->data[$model->name][$field]) &&
|
||||
0 === strlen($model->data[$model->name][$field]) )
|
||||
{
|
||||
$model->data[$model->name][$field] = null;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
?>
|
@ -1,28 +0,0 @@
|
||||
<h2>
|
||||
<a href="#" id="toggle-admin-left-menu">Admin Menu</a>
|
||||
</h2>
|
||||
<div class="block" id="admin-left-menu">
|
||||
<ul class="section menu">
|
||||
<li>
|
||||
<?php
|
||||
if(($this->params['controller'] == 'dashboards') && ($this->params['action'] == 'admin_index')) {
|
||||
echo $this->Html->link(__('Dashboard', true), array('controller' => 'dashboards', 'action' => 'index', 'admin' => true), array('class' => 'menuitem current'));
|
||||
} else {
|
||||
echo $this->Html->link(__('Dashboard', true), array('controller' => 'dashboards', 'action' => 'index', 'admin' => true), array('class' => 'menuitem'));
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<li>
|
||||
<?php
|
||||
if($this->params['controller'] == 'users') {
|
||||
echo $this->Html->link(__('User Management', true), array('controller' => 'users', 'action' => 'index', 'admin' => true), array('class' => 'menuitem current'));
|
||||
} else {
|
||||
echo $this->Html->link(__('User Management', true), array('controller' => 'users', 'action' => 'index', 'admin' => true), array('class' => 'menuitem'));
|
||||
}
|
||||
?>
|
||||
</li>
|
||||
<li>
|
||||
<a class="menuitem" href="/admin/users/logout">Logout</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
@ -1,22 +0,0 @@
|
||||
<ul class="nav main">
|
||||
<li>
|
||||
<a href="/admin">Admin</a>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/">Link 1</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/">Link 2</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/admin">Admin</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/admin">Admin 2</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/admin">Admin 3</a>
|
||||
</li>
|
||||
</ul>
|
@ -0,0 +1,19 @@
|
||||
<?php if (isset($identifierNeighbours)): ?>
|
||||
<?php //var_dump($identifierNeighbours); ?>
|
||||
<div class="box menubox">
|
||||
<h2>
|
||||
<a href="#" id="toggle-neighbour-actions"><?php echo sprintf(__('Neighbour %s', true), __('Identifiers', true)); ?></a>
|
||||
</h2>
|
||||
<div class="inbox">
|
||||
<div class="block" id="neighbour-actions">
|
||||
<?php foreach (array('prev', 'current', 'next') as $pos): ?>
|
||||
<?php foreach ($identifierNeighbours[$pos] as $neighbourIdentifier): ?>
|
||||
<ul class="list menu">
|
||||
<li<?php if ($pos == 'current') { echo " class=\"current\""; } ?>><?php echo $this->Html->link($neighbourIdentifier['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $neighbourIdentifier['Identifier']['id'])); ?> </li>
|
||||
</ul>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
@ -1,22 +0,0 @@
|
||||
<div class="languages form">
|
||||
<?php echo $this->Form->create('Language');?>
|
||||
<fieldset>
|
||||
<legend><?php __('Add Language'); ?></legend>
|
||||
<?php
|
||||
echo $this->Form->input('name');
|
||||
echo $this->Form->input('code');
|
||||
?>
|
||||
</fieldset>
|
||||
<?php echo $this->Form->end(__('Submit', true));?>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<h3><?php __('Actions'); ?></h3>
|
||||
<ul>
|
||||
|
||||
<li><?php echo $this->Html->link(__('List Languages', true), array('action' => 'index'));?></li>
|
||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
@ -1,22 +0,0 @@
|
||||
<div class="languages form">
|
||||
<?php echo $this->Form->create('Language');?>
|
||||
<fieldset>
|
||||
<legend><?php __('Admin Add Language'); ?></legend>
|
||||
<?php
|
||||
echo $this->Form->input('name');
|
||||
echo $this->Form->input('code');
|
||||
?>
|
||||
</fieldset>
|
||||
<?php echo $this->Form->end(__('Submit', true));?>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<h3><?php __('Actions'); ?></h3>
|
||||
<ul>
|
||||
|
||||
<li><?php echo $this->Html->link(__('List Languages', true), array('action' => 'index'));?></li>
|
||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
@ -1,24 +0,0 @@
|
||||
<div class="languages form">
|
||||
<?php echo $this->Form->create('Language');?>
|
||||
<fieldset>
|
||||
<legend><?php __('Admin Edit Language'); ?></legend>
|
||||
<?php
|
||||
echo $this->Form->input('id');
|
||||
echo $this->Form->input('name');
|
||||
echo $this->Form->input('code');
|
||||
?>
|
||||
</fieldset>
|
||||
<?php echo $this->Form->end(__('Submit', true));?>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<h3><?php __('Actions'); ?></h3>
|
||||
<ul>
|
||||
|
||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Language.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Language.id'))); ?></li>
|
||||
<li><?php echo $this->Html->link(__('List Languages', true), array('action' => 'index'));?></li>
|
||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
@ -1,57 +0,0 @@
|
||||
<div class="languages index">
|
||||
<h2><?php __('Languages');?></h2>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<th><?php echo $this->Paginator->sort('id');?></th>
|
||||
<th><?php echo $this->Paginator->sort('name');?></th>
|
||||
<th><?php echo $this->Paginator->sort('code');?></th>
|
||||
<th><?php echo $this->Paginator->sort('created');?></th>
|
||||
<th><?php echo $this->Paginator->sort('modified');?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($languages as $language):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $language['Language']['id']; ?> </td>
|
||||
<td><?php echo $language['Language']['name']; ?> </td>
|
||||
<td><?php echo $language['Language']['code']; ?> </td>
|
||||
<td><?php echo $language['Language']['created']; ?> </td>
|
||||
<td><?php echo $language['Language']['modified']; ?> </td>
|
||||
<td class="actions">
|
||||
<?php echo $this->Html->link(__('View', true), array('action' => 'view', $language['Language']['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $language['Language']['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $language['Language']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $language['Language']['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<p>
|
||||
<?php
|
||||
echo $this->Paginator->counter(array(
|
||||
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
|
||||
));
|
||||
?> </p>
|
||||
|
||||
<div class="paging">
|
||||
<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
|
||||
| <?php echo $this->Paginator->numbers();?>
|
||||
|
|
||||
<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<h3><?php __('Actions'); ?></h3>
|
||||
<ul>
|
||||
<li><?php echo $this->Html->link(__('New Language', true), array('action' => 'add')); ?></li>
|
||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
@ -1,133 +0,0 @@
|
||||
<div class="languages view">
|
||||
<h2><?php __('Language');?></h2>
|
||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['id']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['name']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Code'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['code']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['created']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['modified']; ?>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<h3><?php __('Actions'); ?></h3>
|
||||
<ul>
|
||||
<li><?php echo $this->Html->link(__('Edit Language', true), array('action' => 'edit', $language['Language']['id'])); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('Delete Language', true), array('action' => 'delete', $language['Language']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $language['Language']['id'])); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('List Languages', true), array('action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Language', true), array('action' => 'add')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3><?php __('Related Identifiers');?></h3>
|
||||
<?php if (!empty($language['Identifier'])):?>
|
||||
<table cellpadding = "0" cellspacing = "0">
|
||||
<tr>
|
||||
<th><?php __('Id'); ?></th>
|
||||
<th><?php __('Language Id'); ?></th>
|
||||
<th><?php __('Translation Index'); ?></th>
|
||||
<th><?php __('Identifier'); ?></th>
|
||||
<th><?php __('Reference String'); ?></th>
|
||||
<th><?php __('Translated'); ?></th>
|
||||
<th><?php __('Created'); ?></th>
|
||||
<th><?php __('Modified'); ?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($language['Identifier'] as $identifier):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $identifier['id'];?></td>
|
||||
<td><?php echo $identifier['language_id'];?></td>
|
||||
<td><?php echo $identifier['translation_index'];?></td>
|
||||
<td><?php echo $identifier['identifier'];?></td>
|
||||
<td><?php echo $identifier['reference_string'];?></td>
|
||||
<td><?php echo $identifier['translated'];?></td>
|
||||
<td><?php echo $identifier['created'];?></td>
|
||||
<td><?php echo $identifier['modified'];?></td>
|
||||
<td class="actions">
|
||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'identifiers', 'action' => 'view', $identifier['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Edit', true), array('controller' => 'identifiers', 'action' => 'edit', $identifier['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Delete', true), array('controller' => 'identifiers', 'action' => 'delete', $identifier['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $identifier['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add'));?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3><?php __('Related Translation Files');?></h3>
|
||||
<?php if (!empty($language['TranslationFile'])):?>
|
||||
<table cellpadding = "0" cellspacing = "0">
|
||||
<tr>
|
||||
<th><?php __('Id'); ?></th>
|
||||
<th><?php __('Language Id'); ?></th>
|
||||
<th><?php __('Filename'); ?></th>
|
||||
<th><?php __('Created'); ?></th>
|
||||
<th><?php __('Modified'); ?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($language['TranslationFile'] as $translationFile):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $translationFile['id'];?></td>
|
||||
<td><?php echo $translationFile['language_id'];?></td>
|
||||
<td><?php echo $translationFile['filename'];?></td>
|
||||
<td><?php echo $translationFile['created'];?></td>
|
||||
<td><?php echo $translationFile['modified'];?></td>
|
||||
<td class="actions">
|
||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'translation_files', 'action' => 'view', $translationFile['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Edit', true), array('controller' => 'translation_files', 'action' => 'edit', $translationFile['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Delete', true), array('controller' => 'translation_files', 'action' => 'delete', $translationFile['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translationFile['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add'));?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
@ -1,24 +0,0 @@
|
||||
<div class="languages form">
|
||||
<?php echo $this->Form->create('Language');?>
|
||||
<fieldset>
|
||||
<legend><?php __('Edit Language'); ?></legend>
|
||||
<?php
|
||||
echo $this->Form->input('id');
|
||||
echo $this->Form->input('name');
|
||||
echo $this->Form->input('code');
|
||||
?>
|
||||
</fieldset>
|
||||
<?php echo $this->Form->end(__('Submit', true));?>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<h3><?php __('Actions'); ?></h3>
|
||||
<ul>
|
||||
|
||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Language.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Language.id'))); ?></li>
|
||||
<li><?php echo $this->Html->link(__('List Languages', true), array('action' => 'index'));?></li>
|
||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
@ -1,53 +0,0 @@
|
||||
<div class="languages index">
|
||||
<h2><?php __('Languages');?></h2>
|
||||
<table cellpadding="0" cellspacing="0">
|
||||
<tr>
|
||||
<th><?php echo $this->Paginator->sort('id');?></th>
|
||||
<th><?php echo $this->Paginator->sort('name');?></th>
|
||||
<th><?php echo $this->Paginator->sort('code');?></th>
|
||||
<th><?php echo $this->Paginator->sort('created');?></th>
|
||||
<th><?php echo $this->Paginator->sort('modified');?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($languages as $language):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $language['Language']['id']; ?> </td>
|
||||
<td><?php echo $language['Language']['name']; ?> </td>
|
||||
<td><?php echo $language['Language']['code']; ?> </td>
|
||||
<td><?php echo $language['Language']['created']; ?> </td>
|
||||
<td><?php echo $language['Language']['modified']; ?> </td>
|
||||
<td class="actions">
|
||||
<?php echo $this->Html->link(__('View', true), array('action' => 'view', $language['Language']['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<p>
|
||||
<?php
|
||||
echo $this->Paginator->counter(array(
|
||||
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
|
||||
));
|
||||
?> </p>
|
||||
|
||||
<div class="paging">
|
||||
<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
|
||||
| <?php echo $this->Paginator->numbers();?>
|
||||
|
|
||||
<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<h3><?php __('Actions'); ?></h3>
|
||||
<ul>
|
||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||
<li><br></li>
|
||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
@ -1,114 +0,0 @@
|
||||
<div class="languages view">
|
||||
<h2><?php __('Language');?></h2>
|
||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['id']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Name'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['name']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Code'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['code']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['created']; ?>
|
||||
|
||||
</dd>
|
||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
||||
<?php echo $language['Language']['modified']; ?>
|
||||
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<div class="actions">
|
||||
<h3><?php __('Actions'); ?></h3>
|
||||
<ul>
|
||||
<li><?php echo $this->Html->link(__('List Languages', true), array('action' => 'index')); ?> </li>
|
||||
<li><br></li>
|
||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||
<li><br></li>
|
||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3><?php __('Related Identifiers');?></h3>
|
||||
<?php if (!empty($language['Identifier'])):?>
|
||||
<table cellpadding = "0" cellspacing = "0">
|
||||
<tr>
|
||||
<th><?php __('Id'); ?></th>
|
||||
<th><?php __('Language Id'); ?></th>
|
||||
<th><?php __('Translation Index'); ?></th>
|
||||
<th><?php __('Identifier'); ?></th>
|
||||
<th><?php __('Reference String'); ?></th>
|
||||
<th><?php __('Translated'); ?></th>
|
||||
<th><?php __('Created'); ?></th>
|
||||
<th><?php __('Modified'); ?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($language['Identifier'] as $identifier):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $identifier['id'];?></td>
|
||||
<td><?php echo $identifier['language_id'];?></td>
|
||||
<td><?php echo $identifier['translation_index'];?></td>
|
||||
<td><?php echo $identifier['identifier'];?></td>
|
||||
<td><?php echo $identifier['reference_string'];?></td>
|
||||
<td><?php echo $identifier['translated'];?></td>
|
||||
<td><?php echo $identifier['created'];?></td>
|
||||
<td><?php echo $identifier['modified'];?></td>
|
||||
<td class="actions">
|
||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'identifiers', 'action' => 'view', $identifier['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3><?php __('Related Translation Files');?></h3>
|
||||
<?php if (!empty($language['TranslationFile'])):?>
|
||||
<table cellpadding = "0" cellspacing = "0">
|
||||
<tr>
|
||||
<th><?php __('Id'); ?></th>
|
||||
<th><?php __('Language Id'); ?></th>
|
||||
<th><?php __('Filename'); ?></th>
|
||||
<th><?php __('Created'); ?></th>
|
||||
<th><?php __('Modified'); ?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($language['TranslationFile'] as $translationFile):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $translationFile['id'];?></td>
|
||||
<td><?php echo $translationFile['language_id'];?></td>
|
||||
<td><?php echo $translationFile['filename'];?></td>
|
||||
<td><?php echo $translationFile['created'];?></td>
|
||||
<td><?php echo $translationFile['modified'];?></td>
|
||||
<td class="actions">
|
||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'translation_files', 'action' => 'view', $translationFile['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
</div>
|
@ -1,59 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* PHP versions 4 and 5
|
||||
*
|
||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||
* Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
*
|
||||
* Licensed under The MIT License
|
||||
* Redistributions of files must retain the above copyright notice.
|
||||
*
|
||||
* @copyright Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
|
||||
* @link http://cakephp.org CakePHP(tm) Project
|
||||
* @package cake
|
||||
* @subpackage cake.cake.libs.view.templates.layouts
|
||||
* @since CakePHP(tm) v 0.10.0.1076
|
||||
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
|
||||
*/
|
||||
?>
|
||||
<!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>
|
||||
<?php echo $this->Html->charset(); ?>
|
||||
<title>
|
||||
<?php __('Ryzom Core: Web Translation Tool :: '); ?>
|
||||
<?php echo $title_for_layout; ?>
|
||||
</title>
|
||||
<?php
|
||||
echo $this->Html->meta('icon');
|
||||
|
||||
echo $this->Html->css('cake.generic');
|
||||
|
||||
echo $scripts_for_layout;
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
<div id="header">
|
||||
<h1><?php echo $this->Html->link(__('Ryzom Core: Web Translation Tool', true), 'http://dev.ryzom.com'); ?></h1>
|
||||
</div>
|
||||
<div id="content">
|
||||
|
||||
<?php echo $this->Session->flash(); ?>
|
||||
|
||||
<?php echo $content_for_layout; ?>
|
||||
|
||||
</div>
|
||||
<div id="footer">
|
||||
<?php echo $this->Html->link(
|
||||
$this->Html->image('cake.power.gif', array('alt'=> __('CakePHP: the rapid development php framework', true), 'border' => '0')),
|
||||
'http://www.cakephp.org/',
|
||||
array('target' => '_blank', 'escape' => false)
|
||||
);
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo $this->element('sql_dump'); ?>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,31 @@
|
||||
1. Web-Based Translation Tool use ryzom translation pipeline, so you need to setup it first.
|
||||
|
||||
2. Change path/to/translation to your translation pipeline path in app/config/database.php
|
||||
|
||||
3. Add following VirtualHost config to your apache configuration.
|
||||
|
||||
<VirtualHost *:80>
|
||||
DocumentRoot /path/to/webtt
|
||||
<Directory /path/to/webtt>
|
||||
php_admin_value open_basedir none
|
||||
php_flag short_open_tag on
|
||||
php_value memory_limit 256M
|
||||
php_flag output_buffering on
|
||||
</Directory>
|
||||
ServerName webtt.your.domain
|
||||
</VirtualHost>
|
||||
|
||||
4. Change permissions to tmp directory.
|
||||
|
||||
# chmod -R o+w webtt/app/tmp
|
||||
|
||||
5. Create MySQL database with default user and WebTT tables.
|
||||
|
||||
# mysql -uroot
|
||||
CREATE DATABASE webtt2;
|
||||
GRANT ALL ON webtt2.* TO webtt@localhost IDENTIFIED BY 'webtt77';
|
||||
# cat db/webtt2.db | mysql -uwebtt -pwebtt77 webtt2
|
||||
|
||||
6. Go to http://webtt.your.domain and register new user for user access.
|
||||
|
||||
7. For administrator access, go to http://webtt.your.domain/admin and log in as admin/newpass
|
@ -0,0 +1,69 @@
|
||||
Name: Language
|
||||
DB Table: `languages`
|
||||
Associations:
|
||||
Language hasMany TranslationFile
|
||||
|
||||
Name: TranslationFile
|
||||
DB Table: `translation_files`
|
||||
Associations:
|
||||
TranslationFile belongsTo Language
|
||||
TranslationFile hasMany ImportedTranslationFile
|
||||
TranslationFile hasMany Identifier
|
||||
|
||||
Name: ImportedTranslationFile
|
||||
DB Table: `imported_translation_files`
|
||||
Associations:
|
||||
TranslationFile belongsTo TranslationFile
|
||||
TranslationFile hasMany FileIdentifier
|
||||
|
||||
Name: Identifier
|
||||
DB Table: `identifiers`
|
||||
Associations:
|
||||
Identifier belongsTo TranslationFile
|
||||
Identifier hasMany Translation
|
||||
Identifier hasMany Comment
|
||||
Identifier hasMany FileIdentifier
|
||||
Identifier hasMany IdentifierColumn
|
||||
Identifier hasOne BestTranslation
|
||||
|
||||
Name: IdentifierColumn
|
||||
DB Table: `identifier_columns`
|
||||
Associations:
|
||||
IdentifierColumn belongsTo Identifier
|
||||
IdentifierColumn hasMany Translation
|
||||
|
||||
Name: FileIdentifier
|
||||
DB Table: `file_identifiers`
|
||||
Associations:
|
||||
FileIdentifier belongsTo ImportedTranslationFile
|
||||
FileIdentifier belongsTo Identifier
|
||||
|
||||
Name: Translation
|
||||
DB Table: `translations`
|
||||
Associations:
|
||||
Translation belongsTo Identifier
|
||||
Translation belongsTo IdentifierColumn
|
||||
Translation belongsTo User
|
||||
Translation belongsTo ParentTranslation
|
||||
Translation hasMany Vote
|
||||
Translation hasMany ChildTranslation
|
||||
|
||||
Name: User
|
||||
DB Table: `users`
|
||||
Associations:
|
||||
User hasMany Translation
|
||||
User hasMany Vote
|
||||
User hasMany Comment
|
||||
|
||||
Name: Vote
|
||||
DB Table: `votes`
|
||||
Associations:
|
||||
Vote belongsTo Translation
|
||||
Vote belongsTo User
|
||||
|
||||
Name: Comment
|
||||
DB Table: `comments`
|
||||
Associations:
|
||||
Comment belongsTo Identifier
|
||||
Comment belongsTo User
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 90 KiB |
@ -0,0 +1,239 @@
|
||||
-- MySQL dump 10.13 Distrib 5.1.51, for pc-linux-gnu (x86_64)
|
||||
--
|
||||
-- Host: localhost Database: webtt2
|
||||
-- ------------------------------------------------------
|
||||
-- Server version 5.1.51
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8 */;
|
||||
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
|
||||
/*!40103 SET TIME_ZONE='+00:00' */;
|
||||
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
|
||||
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
|
||||
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
|
||||
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
|
||||
|
||||
--
|
||||
-- Table structure for table `comments`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `comments`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `comments` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`translation_id` int(10) unsigned DEFAULT NULL,
|
||||
`identifier_id` int(10) unsigned DEFAULT NULL,
|
||||
`user_id` int(10) unsigned DEFAULT NULL,
|
||||
`comment` text,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `identifier_id` (`identifier_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `file_identifiers`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `file_identifiers`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `file_identifiers` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`imported_translation_file_id` int(10) unsigned DEFAULT NULL,
|
||||
`command` varchar(50) DEFAULT NULL,
|
||||
`translation_index` int(10) unsigned DEFAULT NULL,
|
||||
`identifier_id` int(10) unsigned DEFAULT NULL,
|
||||
`arguments` text,
|
||||
`reference_string` text,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `imported_translation_file_id` (`imported_translation_file_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `identifier_columns`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `identifier_columns`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `identifier_columns` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`identifier_id` int(10) unsigned DEFAULT NULL,
|
||||
`column_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
|
||||
`reference_string` text,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `identifier_id` (`identifier_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `identifiers`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `identifiers`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `identifiers` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`language_id` int(10) unsigned DEFAULT NULL,
|
||||
`translation_file_id` int(10) unsigned DEFAULT NULL,
|
||||
`translation_index` int(10) unsigned DEFAULT NULL,
|
||||
`identifier` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL,
|
||||
`arguments` text,
|
||||
`reference_string` text,
|
||||
`context_description` text,
|
||||
`translated` tinyint(1) DEFAULT '0',
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `translation_file_id` (`translation_file_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `imported_translation_files`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `imported_translation_files`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `imported_translation_files` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`language_id` int(10) unsigned DEFAULT NULL,
|
||||
`translation_file_id` int(10) unsigned DEFAULT NULL,
|
||||
`filename` varchar(255) DEFAULT NULL,
|
||||
`merged` tinyint(1) DEFAULT '0',
|
||||
`file_last_modified_date` int(11) DEFAULT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `translation_file_id` (`translation_file_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `languages`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `languages`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `languages` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(50) DEFAULT NULL,
|
||||
`code` varchar(10) DEFAULT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `code` (`code`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `translation_files`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `translation_files`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `translation_files` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`language_id` int(10) unsigned DEFAULT NULL,
|
||||
`filename_template` varchar(255) DEFAULT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `language_id` (`language_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `translations`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `translations`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `translations` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`parent_id` int(10) unsigned DEFAULT NULL,
|
||||
`identifier_id` int(10) unsigned DEFAULT NULL,
|
||||
`identifier_column_id` int(10) unsigned DEFAULT NULL,
|
||||
`translation_text` text,
|
||||
`user_id` int(10) unsigned DEFAULT NULL,
|
||||
`best` tinyint(1) DEFAULT NULL,
|
||||
`translation_hash` varchar(32) DEFAULT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `best` (`best`),
|
||||
KEY `identifier_column_id` (`identifier_column_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `users`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `users`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `users` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(100) DEFAULT NULL,
|
||||
`email` varchar(200) DEFAULT NULL,
|
||||
`activated` tinyint(1) DEFAULT NULL,
|
||||
`username` varchar(40) DEFAULT NULL,
|
||||
`password` varchar(100) DEFAULT NULL,
|
||||
`role` varchar(20) DEFAULT NULL,
|
||||
`confirm_hash` varchar(40) DEFAULT NULL,
|
||||
`last_login` datetime DEFAULT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
LOCK TABLES `users` WRITE;
|
||||
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
|
||||
|
||||
INSERT INTO `users` VALUES (1,'Admin','',1,'admin','9ff60bfc5939c7863518e202cba4dff81da316be','admin',NULL,NULL,NULL,NULL);
|
||||
|
||||
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
--
|
||||
-- Table structure for table `votes`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `votes`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `votes` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`translation_id` int(10) unsigned DEFAULT NULL,
|
||||
`user_id` int(10) unsigned DEFAULT NULL,
|
||||
`created` datetime DEFAULT NULL,
|
||||
`modified` datetime DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
|
||||
|
||||
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
|
||||
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
|
||||
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
|
Loading…
Reference in New Issue