Beispiel #1
0
<?php

return ['title' => trans('administrator::dashboard.credits.credits'), 'single' => trans('administrator::dashboard.credits.credits'), 'model' => 'Hifone\\Models\\Credit', 'columns' => ['id' => ['title' => 'ID'], 'balance' => ['title' => trans('administrator::dashboard.credits.balance'), 'sortable' => true], 'frequency_tag' => ['title' => trans('administrator::dashboard.credits.frequency_tag'), 'sortable' => false], 'body' => ['title' => trans('administrator::dashboard.credits.body'), 'sortable' => false], 'rule' => ['title' => trans('administrator::dashboard.credits.credit_rule'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->rule->name . ' (' . $model->rule->slug . ')', 'credit_rules', $model->rule_id);
}], 'user' => ['title' => trans('administrator::dashboard.credits.author'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->user->username, 'users', $model->user_id);
}], 'operation' => ['title' => trans('administrator::administrator.operation'), 'output' => function ($value, $model) {
    return $value;
}, 'sortable' => false]], 'edit_fields' => ['balance' => ['title' => trans('administrator::dashboard.credits.balance'), 'type' => 'textarea'], 'frequency_tag' => ['title' => trans('administrator::dashboard.credits.frequency_tag'), 'type' => 'text'], 'body' => ['title' => trans('administrator::dashboard.credits.body'), 'type' => 'textarea'], 'user' => ['title' => trans('administrator::dashboard.credits.author'), 'type' => 'relationship', 'name_field' => 'username', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', username)"), 'options_sort_field' => 'id'], 'rule' => ['title' => trans('administrator::dashboard.credits.credit_rule'), 'type' => 'relationship', 'name_field' => 'name', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', slug)"), 'options_sort_field' => 'id']], 'filters' => ['id' => ['title' => 'ID'], 'balance' => ['title' => trans('administrator::dashboard.credits.balance')], 'frequency_tag' => ['title' => trans('administrator::dashboard.credits.frequency_tag')], 'body' => ['title' => trans('administrator::dashboard.credits.body')], 'user' => ['title' => trans('administrator::dashboard.credits.author'), 'type' => 'relationship', 'name_field' => 'username', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', username)"), 'options_sort_field' => 'id'], 'rule' => ['title' => trans('administrator::dashboard.credits.credit_rule'), 'type' => 'relationship', 'name_field' => 'name', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', slug)"), 'options_sort_field' => 'id']]];
Beispiel #2
0
<?php

return ['title' => trans('administrator::dashboard.advertisements.advertisements'), 'single' => trans('administrator::dashboard.advertisements.advertisements'), 'model' => 'Hifone\\Models\\Advertisement', 'columns' => ['id' => ['title' => 'ID'], 'name' => ['title' => trans('administrator::dashboard.advertisements.name'), 'sortable' => false], 'body' => ['title' => trans('administrator::dashboard.advertisements.body'), 'sortable' => false], 'adspace' => ['title' => trans('administrator::dashboard.advertisements.adspace'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->adspace->name, 'adspace', $model->adspace_id);
}], 'operation' => ['title' => trans('administrator::administrator.operation'), 'output' => function ($value, $model) {
    return $value;
}, 'sortable' => false]], 'edit_fields' => ['name' => ['title' => trans('administrator::dashboard.advertisements.name')], 'body' => ['title' => trans('administrator::dashboard.advertisements.body'), 'type' => 'textarea'], 'adspace' => ['title' => trans('administrator::dashboard.advertisements.adspace'), 'type' => 'relationship', 'name_field' => 'name', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', position)"), 'options_sort_field' => 'id']], 'filters' => ['id' => ['title' => 'ID'], 'name' => ['title' => trans('administrator::dashboard.advertisements.name')], 'adspace' => ['title' => trans('administrator::dashboard.advertisements.adspace'), 'type' => 'relationship', 'name_field' => 'name', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', position)"), 'options_sort_field' => 'id']]];
Beispiel #3
0
<?php

return ['title' => trans('administrator::dashboard.replies.replies'), 'single' => trans('administrator::dashboard.replies.replies'), 'model' => 'Hifone\\Models\\Reply', 'columns' => ['id' => ['title' => 'ID'], 'user' => ['title' => trans('administrator::dashboard.replies.author'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->user->username, 'users', $model->user_id);
}], 'thread' => ['title' => trans('administrator::dashboard.replies.thread'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->thread->title, 'threads', $model->thread_id);
}], 'is_blocked' => ['title' => trans('administrator::dashboard.replies.is_blocked')], 'like_count' => ['title' => trans('administrator::dashboard.replies.like_count')], 'operation' => ['title' => trans('administrator::administrator.operation'), 'output' => function ($value, $model) {
}, 'sortable' => false]], 'edit_fields' => ['user' => ['title' => trans('administrator::dashboard.replies.author'), 'type' => 'relationship', 'name_field' => 'username', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', username)"), 'options_sort_field' => 'id'], 'thread' => ['title' => trans('administrator::dashboard.replies.thread'), 'type' => 'relationship', 'name_field' => 'title', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', title)"), 'options_sort_field' => 'id'], 'body_original' => ['title' => 'Markdown body', 'hint' => 'support Markdown', 'type' => 'textarea'], 'is_blocked' => ['title' => trans('administrator::dashboard.replies.is_blocked'), 'type' => 'enum', 'options' => ['yes' => 'Yes', 'no' => 'No'], 'value' => 'no'], 'like_count' => ['title' => trans('administrator::dashboard.replies.like_count')]], 'filters' => ['user' => ['title' => trans('administrator::dashboard.replies.author'), 'type' => 'relationship', 'name_field' => 'username', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', username)"), 'options_sort_field' => 'id'], 'thread' => ['title' => trans('administrator::dashboard.replies.thread'), 'type' => 'relationship', 'name_field' => 'title', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', title)"), 'options_sort_field' => 'id'], 'is_blocked' => ['title' => trans('administrator::dashboard.replies.is_blocked'), 'type' => 'enum', 'options' => ['yes' => 'Yes', 'no' => 'No']], 'body_original' => ['title' => trans('administrator::dashboard.replies.body_original')], 'like_count' => ['type' => 'number', 'title' => trans('administrator::dashboard.replies.like_count'), 'thousands_separator' => ',', 'decimal_separator' => '.']], 'rules' => ['body_original' => 'required'], 'messages' => ['body_original.required' => 'body_original is required.']];
Beispiel #4
0
<?php

return ['title' => trans('administrator::dashboard.adspaces.adspaces'), 'single' => trans('administrator::dashboard.adspaces.adspaces'), 'model' => 'Hifone\\Models\\Ad\\Adspace', 'columns' => ['id' => ['title' => 'ID'], 'name' => ['title' => trans('administrator::dashboard.adspaces.name'), 'sortable' => false], 'order' => ['title' => trans('administrator::dashboard.adspaces.order'), 'sortable' => true], 'position' => ['title' => trans('administrator::dashboard.adspaces.position'), 'sortable' => false], 'route' => ['title' => trans('administrator::dashboard.adspaces.route'), 'sortable' => false], 'adblock' => ['title' => trans('administrator::dashboard.adspaces.adblock'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->adblock->name, 'adblock', $model->adblock_id);
}], 'operation' => ['title' => trans('administrator::administrator.operation'), 'output' => function ($value, $model) {
    return $value;
}, 'sortable' => false]], 'edit_fields' => ['name' => ['title' => trans('administrator::dashboard.adspaces.name')], 'order' => ['title' => trans('administrator::dashboard.adspaces.order')], 'position' => ['title' => trans('administrator::dashboard.adspaces.position')], 'route' => ['title' => trans('administrator::dashboard.adspaces.route')], 'adblock' => ['title' => trans('administrator::dashboard.adspaces.adblock'), 'type' => 'relationship', 'name_field' => 'name', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', slug)"), 'options_sort_field' => 'id']], 'filters' => ['id' => ['title' => 'ID'], 'title' => ['title' => trans('administrator::dashboard.links.title')], 'adblock' => ['title' => trans('administrator::dashboard.adspaces.adblock'), 'type' => 'relationship', 'name_field' => 'name', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', slug)"), 'options_sort_field' => 'id']]];
Beispiel #5
0
<?php

return ['title' => trans('administrator::dashboard.nodes.nodes'), 'single' => trans('administrator::dashboard.nodes.nodes'), 'model' => 'Hifone\\Models\\Node', 'columns' => ['id' => ['title' => 'ID'], 'name' => ['title' => trans('administrator::dashboard.nodes.name'), 'sortable' => false], 'slug' => ['title' => 'Slug', 'sortable' => false], 'description' => ['title' => trans('administrator::dashboard.nodes.description'), 'sortable' => false], 'order' => ['title' => trans('administrator::dashboard.nodes.order'), 'sortable' => true], 'section' => ['title' => trans('administrator::dashboard.nodes.parent'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->section->name, 'sections', $model->section_id);
}], 'operation' => ['title' => trans('administrator::administrator.operation'), 'output' => function ($value, $model) {
    return $value;
}, 'sortable' => false]], 'edit_fields' => ['name' => ['title' => trans('administrator::dashboard.nodes.name')], 'slug' => ['title' => 'Slug'], 'description' => ['title' => trans('administrator::dashboard.nodes.description'), 'type' => 'textarea'], 'order' => ['title' => trans('administrator::dashboard.nodes.order')], 'section' => ['title' => trans('administrator::dashboard.nodes.parent'), 'type' => 'relationship', 'name_field' => 'name', 'search_fields' => array("CONCAT(id, ' ', name)"), 'options_sort_field' => 'id']], 'filters' => ['id' => ['title' => 'ID'], 'name' => ['title' => trans('administrator::dashboard.nodes.name')], 'slug' => ['title' => 'Slug'], 'description' => ['title' => trans('administrator::dashboard.nodes.description')], 'order' => ['title' => trans('administrator::dashboard.nodes.order')], 'section' => ['title' => trans('administrator::dashboard.nodes.parent'), 'type' => 'relationship', 'name_field' => 'name', 'search_fields' => array("CONCAT(id, ' ', name)"), 'options_sort_field' => 'id']], 'rules' => ['name' => 'required|min:1|unique:nodes'], 'messages' => ['name.unique' => '分类名在数据库里有重复,请选用其他名称。', 'name.required' => '请确保名字至少一个字符以上']];
Beispiel #6
0
    ?>
        <?php 
    echo split_load($status[$inst]['dlr']['inbound']);
    ?>
        <?php 
    echo split_load($status[$inst]['sms']['outbound']);
    ?>
        <?php 
    echo split_load($status[$inst]['dlr']['outbound']);
    ?>
        <td>
            <?php 
    echo admin_link('suspend') . " | " . admin_link('isolate') . " | " . admin_link('resume') . "<br />";
    ?>
            <?php 
    echo admin_link('flush-dlr') . " | " . admin_link('shutdown') . " | " . admin_link('restart');
    ?>
        </td>
    </tr>
<?php 
}
?>

</table>

<h4>Overall SMS traffic</h4>

<p id="bord">
<table width="100%" cellspacing="0" class="text" id="overall" valign="top">
<tr>
    <th>Instance</th>
Beispiel #7
0
?>
<?
if (!empty($this->dataset->data)) {
	foreach ($this->dataset->data as $row) {
	?>
		<tr>
			<td><input type="checkbox" name="check_<?php 
echo $row['id'];
?>
" value="1" class="action_items" /></td>
			<td><?php 
echo $row['id'];
?>
</td>
			<td><?php 
echo admin_link($row['url']);
?>
</td>
			<td><? if ($row['is_download'] == TRUE) { ?><img src="<?php 
echo branded_include('images/download.png');
?>
" alt="Downloadable Product" /><? } ?><? if ($row['is_download'] == TRUE and $row['requires_shipping'] == TRUE) { ?>&nbsp;<? } ?><? if ($row['requires_shipping'] == TRUE) { ?><img src="<?php 
echo branded_include('images/shippable.png');
?>
" alt="Shippable Product" /><? } ?></td>
			<td><a href="<?php 
echo $row['admin_link'];
?>
"><?php 
echo $row['name'];
?>
Beispiel #8
0
<?php

return ['title' => trans('administrator::dashboard.threads.threads'), 'single' => trans('administrator::dashboard.threads.threads'), 'model' => 'Hifone\\Models\\Thread', 'columns' => ['id' => ['title' => 'ID'], 'title' => ['title' => trans('administrator::dashboard.threads.title'), 'sortable' => false], 'order' => ['title' => trans('administrator::dashboard.threads.order')], 'user' => ['title' => trans('administrator::dashboard.users.username'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->user->username, 'users', $model->user_id);
}], 'node' => ['title' => trans('administrator::dashboard.threads.node'), 'sortable' => false, 'output' => function ($value, $model) {
    return admin_link($model->node->name, 'nodes', $model->node_id);
}], 'is_excellent' => ['title' => trans('administrator::dashboard.threads.is_excellent')], 'is_blocked' => ['title' => trans('administrator::dashboard.threads.is_blocked')], 'reply_count' => ['title' => trans('administrator::dashboard.threads.reply_count')], 'view_count' => ['title' => trans('administrator::dashboard.threads.view_count')], 'favorite_count' => ['title' => trans('administrator::dashboard.threads.favorite_count')], 'like_count' => ['title' => trans('administrator::dashboard.threads.like_count')], 'operation' => ['title' => trans('administrator::administrator.operation'), 'output' => function ($value, $model) {
}, 'sortable' => false]], 'edit_fields' => ['title' => ['title' => trans('administrator::dashboard.threads.title'), 'sortable' => false], 'user' => ['title' => trans('administrator::dashboard.users.username'), 'type' => 'relationship', 'name_field' => 'username', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', username)"), 'options_sort_field' => 'id'], 'node' => ['title' => trans('administrator::dashboard.threads.node'), 'type' => 'relationship', 'name_field' => 'name', 'search_fields' => array("CONCAT(id, ' ', name)"), 'options_sort_field' => 'id'], 'body_original' => ['title' => 'Markdown content', 'hint' => 'support Markdown', 'type' => 'textarea'], 'order' => ['title' => trans('administrator::dashboard.threads.order')], 'is_excellent' => ['title' => trans('administrator::dashboard.threads.is_excellent'), 'type' => 'enum', 'options' => ['yes' => 'Yes', 'no' => 'No'], 'value' => 'no'], 'is_blocked' => ['title' => trans('administrator::dashboard.threads.is_blocked'), 'type' => 'enum', 'options' => ['yes' => 'Yes', 'no' => 'No'], 'value' => 'no'], 'reply_count' => ['title' => trans('administrator::dashboard.threads.reply_count')], 'view_count' => ['title' => trans('administrator::dashboard.threads.view_count')], 'favorite_count' => ['title' => trans('administrator::dashboard.threads.favorite_count')], 'like_count' => ['title' => trans('administrator::dashboard.threads.like_count')]], 'filters' => ['id' => ['title' => 'ID'], 'user' => ['title' => trans('administrator::dashboard.users.username'), 'type' => 'relationship', 'name_field' => 'username', 'autocomplete' => true, 'search_fields' => array("CONCAT(id, ' ', username)"), 'options_sort_field' => 'id'], 'node' => ['title' => trans('administrator::dashboard.threads.node'), 'type' => 'relationship', 'name_field' => 'name', 'search_fields' => array("CONCAT(id, ' ', screen_name)"), 'options_sort_field' => 'id'], 'body_original' => ['title' => 'Markdown content'], 'order' => ['title' => trans('administrator::dashboard.threads.order')], 'is_excellent' => ['title' => trans('administrator::dashboard.threads.is_excellent'), 'type' => 'enum', 'options' => ['yes' => 'Yes', 'no' => 'No'], 'value' => 'no'], 'is_blocked' => ['title' => trans('administrator::dashboard.threads.is_blocked'), 'type' => 'enum', 'options' => ['yes' => 'Yes', 'no' => 'No'], 'value' => 'no'], 'view_count' => ['type' => 'number', 'title' => trans('administrator::dashboard.threads.view_count'), 'thousands_separator' => ',', 'decimal_separator' => '.']], 'rules' => ['title' => 'required'], 'messages' => ['title.required' => 'title is required.']];