Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Игорь
vtorpoisk
Commits
9f4f2745
Commit
9f4f2745
authored
Mar 01, 2021
by
Игорь
Browse files
init
parent
a765cdc4
Changes
1000
Show whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
1000 of 1000+
files are displayed.
Plain diff
Email patch
apps/arm/modules/export/templates/_cat_id.php
0 → 100644
View file @
9f4f2745
<?php
echo
$export
->
getCat
()
->
getTitle
();
\ No newline at end of file
apps/arm/modules/export/templates/_filters.php
0 → 100644
View file @
9f4f2745
<?php
use_stylesheets_for_form
(
$form
)
?>
<?php
use_javascripts_for_form
(
$form
)
?>
<?php
$fa
=
$sf_user
->
getAttribute
(
'export.filters'
,
$configuration
,
'admin_module'
);
$fac
=
array
();
foreach
(
$fa
as
$f
)
{
if
(
!
is_null
(
$f
))
{
$fac
[]
=
$f
;
}
}
?>
<div
class=
"sf_admin_filter__wrapper"
>
<button
class=
"sf_admin_filter__button pseudo_button sf_admin_filter__tooggler
<?php
echo
(
count
(
$fac
)
>
0
?
' sf_admin_filter__tooggler__on'
:
''
);
?>
"
>
Фильтр
</button>
<div
class=
"sf_admin_filter"
>
<span
class=
"sf_admin_filter_close"
onclick=
"$(this).parent().hide();"
></span>
<b>
Фильтр
</b><i
class=
"br10"
></i>
<?php
if
(
$form
->
hasGlobalErrors
())
:
?>
<?php
echo
$form
->
renderGlobalErrors
()
?>
<?php
endif
;
?>
<div
id=
"sf_admin_filter_form"
>
<form
action=
"
<?php
echo
url_for
(
'export_collection'
,
array
(
'action'
=>
'filter'
))
?>
"
method=
"post"
>
<?php
foreach
(
$configuration
->
getFormFilterFields
(
$form
)
as
$name
=>
$field
)
:
?>
<?php
if
((
isset
(
$form
[
$name
])
&&
$form
[
$name
]
->
isHidden
())
||
(
!
isset
(
$form
[
$name
])
&&
$field
->
isReal
()))
continue
?>
<?php
include_partial
(
'export/filters_field'
,
array
(
'name'
=>
$name
,
'attributes'
=>
$field
->
getConfig
(
'attributes'
,
array
()),
'label'
=>
$field
->
getConfig
(
'label'
),
'help'
=>
$field
->
getConfig
(
'help'
),
'form'
=>
$form
,
'field'
=>
$field
,
'class'
=>
'sf_admin_form_row sf_admin_'
.
strtolower
(
$field
->
getType
())
.
' sf_admin_filter_field_'
.
$name
,
))
?>
<?php
endforeach
;
?>
<i
class=
"br5"
></i>
<?php
echo
$form
->
renderHiddenFields
()
?>
<input
type=
"submit"
class=
"pseudo_button no_ajax"
value=
"Применить"
/>
<?php
echo
link_to
(
__
(
'Reset'
,
array
(),
'sf_admin'
),
'export_collection'
,
array
(
'action'
=>
'filter'
),
array
(
'query_string'
=>
'_reset'
,
'method'
=>
'post'
,
'class'
=>
'lui_pseudo'
))
?>
</form>
</div>
</div>
</div>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
var
lui__list_actions__wrapper__filter
=
[];
$
(
'
#sf_admin_filter_form
'
).
find
(
'
select
'
).
each
(
function
(
k
,
el
){
var
more
=
''
;
if
(
typeof
$
(
el
).
parent
().
find
(
'
input
'
)
!=
"
undefined
"
){
if
(
$
(
el
).
parent
().
find
(
'
input
'
).
length
>
0
&&
$
(
el
).
parent
().
find
(
'
input
'
).
val
()
!=
null
&&
$
(
el
).
parent
().
find
(
'
input
'
).
val
()
!=
''
){
var
arr
=
$
(
el
).
parent
().
find
(
'
input
'
).
val
().
split
(
'
.
'
);
more
=
arr
[
0
]
+
'
'
;
}
}
if
(
$
(
el
).
val
()
!=
''
){
if
(
$
(
el
).
hasClass
(
"
date_month
"
)){
lui__list_actions__wrapper__filter
.
push
(
'
<div class="sf_admin_filter__extend__item"><b>
'
+
$
(
el
).
parent
().
closest
(
'
.sf_admin_form_row
'
).
find
(
'
label
'
).
html
()
+
'
:</b>
'
+
more
+
$
(
el
).
find
(
'
option:selected
'
).
html
()
+
'
<span class="sf_admin_filter__extend__item__remove" onclick="$(
\'
#
'
+
$
(
el
).
attr
(
'
id
'
).
replace
(
'
month
'
,
'
day
'
)
+
'
\'
).val(
\'\'
);$(
\'
#
'
+
$
(
el
).
attr
(
'
id
'
)
+
'
\'
).val(
\'\'
);$(
\'
#
'
+
$
(
el
).
attr
(
'
id
'
).
replace
(
'
month
'
,
'
year
'
)
+
'
\'
).val(
\'\'
);$(
\'
#sf_admin_filter_form form
\'
).submit();"></span></div>
'
);
}
else
{
lui__list_actions__wrapper__filter
.
push
(
'
<div class="sf_admin_filter__extend__item"><b>
'
+
$
(
el
).
parent
().
closest
(
'
.sf_admin_form_row
'
).
find
(
'
label
'
).
html
()
+
'
:</b>
'
+
more
+
$
(
el
).
find
(
'
option:selected
'
).
html
()
+
'
<span class="sf_admin_filter__extend__item__remove" onclick="$(
\'
#
'
+
$
(
el
).
attr
(
'
id
'
)
+
'
\'
).val(
\'\'
);$(
\'
#sf_admin_filter_form form
\'
).submit();"></span></div>
'
);
}
}
});
if
(
lui__list_actions__wrapper__filter
.
length
>
0
){
$
(
'
.lui__list_actions__wrapper
'
).
append
(
'
<i class="br10"></i><div class="sf_admin_filter__extend">
'
+
lui__list_actions__wrapper__filter
.
join
(
'
'
)
+
'
</div>
'
);
create_custom_table_head_recalc
();
}
$
(
'
.sf_admin_filter__tooggler
'
).
click
(
function
(){
$
(
this
).
parent
().
find
(
'
.sf_admin_filter
'
).
toggle
();
var
selects
=
$
(
this
).
parent
().
find
(
'
.sf_admin_filter
'
).
find
(
'
select
'
);
selects
.
attr
(
'
data-search
'
,
true
);
selects
.
customizeForm
();
return
false
;
});
/*
var sf_filter_abss = $('.sf_filter_abs');
sf_filter_abss.each(function(){
if($(this).parent().data('absed') == '1'){
return false;
}
$(this).parent().data('absed', '1');
var pp = $(this).parent().clone();
$('.lui__list_count').after(pp);
pp.css({
'display' : 'inline-block',
'position': 'absolute',
'left' : $('.lui__list_count').width() + $('.lui__list_count').position().left + 30
});
});
*/
});
</script>
apps/arm/modules/export/templates/_list_actions.php
0 → 100644
View file @
9f4f2745
<td>
<ul
class=
"lui__list_actions"
>
<?php
if
(
$sf_user
->
hasCredential
(
'export_new'
))
:
?>
<?php
//echo $helper->linkToNew(array( 'params' => array( ), 'class_suffix' => 'new', 'label' => 'New',), array("_partial" => $_partial)) ?>
<?
php
endif
;
?>
</ul>
</td>
apps/arm/modules/export/templates/_logic_type.php
0 → 100644
View file @
9f4f2745
<?php
echo
$export
->
getLogicTypeRu
();
\ No newline at end of file
apps/arm/modules/export/templates/_sum.php
0 → 100644
View file @
9f4f2745
<?php
echo
Yavinesu
::
priceFormat
(
$export
->
getSum
());
\ No newline at end of file
apps/arm/modules/export/templates/_user_id.php
0 → 100644
View file @
9f4f2745
<?php
echo
Page
::
maskPhone
(
$export
->
getUser
()
->
getUsername
())
.
' '
.
$export
->
getUser
()
->
getName
();
\ No newline at end of file
apps/arm/modules/export/templates/_weight.php
0 → 100644
View file @
9f4f2745
<?php
echo
Yavinesu
::
weightFormat
(
$export
->
getWeight
());
\ No newline at end of file
apps/arm/modules/mail_template/actions/actions.class.php
0 → 100644
View file @
9f4f2745
<?php
require_once
dirname
(
__FILE__
)
.
'/../lib/mail_templateGeneratorConfiguration.class.php'
;
require_once
dirname
(
__FILE__
)
.
'/../lib/mail_templateGeneratorHelper.class.php'
;
/**
* mail_template actions.
*
* @package sf
* @subpackage mail_template
* @author Atma
* @version SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
mail_templateActions
extends
autoMail_templateActions
{
}
apps/arm/modules/mail_template/config/generator.yml
0 → 100644
View file @
9f4f2745
generator
:
class
:
sfDoctrineGenerator
param
:
model_class
:
MailTemplate
theme
:
admin
non_verbose_templates
:
true
with_show
:
false
singular
:
~
plural
:
~
route_prefix
:
mail_template
with_doctrine_route
:
true
actions_base_class
:
sfActions
order
:
50
hr
:
true
config
:
actions
:
~
fields
:
title
:
{
label
:
Название
}
event
:
{
label
:
'
Событие'
}
theme
:
{
label
:
'
Тема
письма'
}
copy
:
{
label
:
'
Дублировать
списку
адресатов'
}
params
:
{
label
:
'
Переменные'
}
body
:
{
label
:
'
Текст
письма'
}
list
:
layout
:
~
title
:
'
Шаблоны
писем'
display
:
[
title
,
theme
,
event
]
max_per_page
:
100
object_actions
:
_delete
:
~
_edit
:
~
search
:
fields
:
false
export
:
false
filter
:
class
:
false
form
:
~
edit
:
title
:
Редактирование шаблона
new
:
title
:
Новый шаблон
\ No newline at end of file
apps/arm/modules/mail_template/lib/mail_templateGeneratorConfiguration.class.php
0 → 100644
View file @
9f4f2745
<?php
/**
* mail_template module configuration.
*
* @package sf
* @subpackage mail_template
* @author Atma
* @version SVN: $Id: configuration.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
mail_templateGeneratorConfiguration
extends
BaseMail_templateGeneratorConfiguration
{
}
apps/arm/modules/mail_template/lib/mail_templateGeneratorHelper.class.php
0 → 100644
View file @
9f4f2745
<?php
/**
* mail_template module helper.
*
* @package sf
* @subpackage mail_template
* @author Atma
* @version SVN: $Id: helper.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
*/
class
mail_templateGeneratorHelper
extends
BaseMail_templateGeneratorHelper
{
}
apps/arm/modules/mail_template/templates/_form_fieldset_footer.php
0 → 100644
View file @
9f4f2745
<div
style=
"padding: 12px 15px;background-color: #F0F0F0;"
>
Переменные в письме:
<i
class=
"br5"
></i>
<?php
$params
=
explode
(
';'
,
$form
->
getObject
()
->
getParams
());
foreach
(
$params
as
$param
)
{
$p
=
explode
(
':'
,
$param
);
if
(
strlen
(
trim
(
$p
[
0
]))
>
1
)
{
echo
'<b>'
.
trim
(
$p
[
0
])
.
'</b><span style="padding: 0 3px;">-</span>'
.
trim
(
$p
[
1
])
.
'<i class="br5"></i>'
;
}
}
?>
</div>
apps/arm/modules/mail_template/templates/_list.php
0 → 100644
View file @
9f4f2745
<?php
if
(
!
$pager
->
getNbResults
())
:
?>
<?php
else
:
?>
<table
cellspacing=
"0"
cellpadding=
"3"
border=
"0"
class=
"lui__list_table lui__list_table_donor lui__list_table__sourse"
id=
"lui__list_table_donor"
>
<thead>
<tr>
<th
id=
"sf_admin_list_batch_actions"
class=
"sf_admin_batch_checkbox__td"
><input
id=
"sf_admin_list_batch_checkbox"
type=
"checkbox"
onclick=
"$('.sf_admin_batch_checkbox').prop('checked', $(this).is(':checked'));"
/></th>
<?php
include_partial
(
'mail_template/list_th_tabular'
,
array
(
'sort'
=>
$sort
))
?>
<th
id=
"sf_admin_list_th_actions"
>
</th>
</tr>
</thead>
<tbody>
<?php
foreach
(
$pager
->
getResults
()
as
$i
=>
$mail_template
)
:
$odd
=
fmod
(
++
$i
,
2
)
?
'odd'
:
'even'
?>
<tr
class=
"sf_admin_row
<?php
echo
$odd
?>
"
valign=
"top"
data-href=
"
<?php
echo
url_for
(
'mail_template/edit?id='
.
$mail_template
->
getPrimaryKey
());
?>
"
>
<?php
include_partial
(
'mail_template/list_td_batch_actions'
,
array
(
'mail_template'
=>
$mail_template
,
'helper'
=>
$helper
))
?>
<?php
include_partial
(
'mail_template/list_td_tabular'
,
array
(
'mail_template'
=>
$mail_template
))
?>
<td>
<?php
include_partial
(
'mail_template/list_td_actions'
,
array
(
'mail_template'
=>
$mail_template
,
'helper'
=>
$helper
))
?>
</td>
</tr>
<?php
endforeach
;
?>
</tbody>
</table>
<?php
endif
;
?>
<?php
include_partial
(
'mail_template/list_footer'
,
array
(
'mail_template'
=>
$mail_template
,
'helper'
=>
$helper
))
?>
<script>
//$('.lui__list_actions__wrapper').hide();
</script>
\ No newline at end of file
apps/arm/modules/main/actions/actions.class.php
0 → 100644
View file @
9f4f2745
<?php
class
mainActions
extends
sfActions
{
public
function
executeEvent
(
sfWebRequest
$request
)
{
return
sfView
::
SUCCESS
;
}
public
function
executeIndex
(
sfWebRequest
$request
)
{
}
public
function
executeProfile
(
sfWebRequest
$request
)
{
$account
=
$this
->
getUser
()
->
getAccount
();
$this
->
form
=
new
ProfileForm
(
$account
);
if
(
$request
->
isMethod
(
'post'
))
{
$params
=
$request
->
getParameter
(
$this
->
form
->
getName
());
$params
[
'email'
]
=
$account
->
getEmail
();
$this
->
form
->
bind
(
$params
,
$request
->
getFiles
(
$this
->
form
->
getName
()));
if
(
$this
->
form
->
isValid
())
{
$user
=
$this
->
form
->
save
();
$this
->
getUser
()
->
setFlash
(
'notice'
,
"Данные сохранены"
);
}
else
{
$errorStack
=
$this
->
form
->
getObject
()
->
getErrorStack
();
$message
=
get_class
(
$this
->
form
->
getObject
())
.
' has '
.
count
(
$errorStack
)
.
" field"
.
(
count
(
$errorStack
)
>
1
?
's'
:
null
)
.
" with validation errors: "
;
foreach
(
$errorStack
as
$field
=>
$errors
)
{
$message
.
=
"
$field
("
.
implode
(
", "
,
$errors
)
.
"), "
;
}
$message
=
trim
(
$message
,
', '
);
$this
->
getUser
()
->
setFlash
(
'error'
,
$message
);
}
}
}
public
function
executeError404
(
sfWebRequest
$request
)
{
$this
->
setLayout
(
'404'
);
}
public
function
executeVersion
(
sfWebRequest
$request
)
{
$this
->
forward404Unless
(
$this
->
getUser
()
->
getUsername
()
==
'root'
);
$this
->
setLayout
(
false
);
}
}
apps/arm/modules/main/actions/components.class.php
0 → 100644
View file @
9f4f2745
<?php
class
mainComponents
extends
sfComponents
{
}
apps/arm/modules/main/config/security.yml
0 → 100644
View file @
9f4f2745
# You can find more information about this file on the symfony website:
# http://www.symfony-project.org/reference/1_4/en/08-Security
reset
:
is_secure
:
false
apps/arm/modules/main/templates/_image.php
0 → 100644
View file @
9f4f2745
<?php
if
(
$image
)
{
$image_arr
=
explode
(
';'
,
$image
);
if
(
count
(
$image_arr
)
>
0
){
foreach
(
$image_arr
as
$key
=>
$image_item
){
echo
(
$line_length
?
(
$key
%
$line_length
==
0
&&
$key
!=
0
?
'<br>'
:
''
)
:
''
)
.
'<img width="100%"'
.
(
$type
==
'fotorama'
?
'data-ad_id="'
.
$id
.
'" class="ftm_used_image ftm_used_image_'
.
$id
.
'" onclick="ftm.init(\'list\', this);event.stopPropagation();return false;"'
:
''
)
.
' src="/u/i/'
.
(
isset
(
$equal
)
?
$image_item
:
Page
::
replaceImageSize
(
$image_item
,
'S'
))
.
(
$sf_request
->
isXmlHttpRequest
()
?
'?u='
.
rand
(
1
,
10000
)
:
''
)
.
'">'
;
}
}
}
?>
\ No newline at end of file
apps/arm/modules/main/templates/_open_profile_btn.php
0 → 100644
View file @
9f4f2745
<?php
echo
'<a target="_blank" onclick="event.stopPropagation();" class="lui_pseudo" href="/arm/user/'
.
$id
.
'/edit">Открыть профиль</a>'
;
\ No newline at end of file
apps/arm/modules/main/templates/_user.php
0 → 100644
View file @
9f4f2745
<?php
$fields
=
array
(
$user
[
'name'
],
Page
::
perfectPhone
(
$user
[
'phone'
],
true
),
$user
[
'email'
]);
foreach
(
$fields
as
$key
=>
$field
){
if
(
strlen
(
trim
(
$field
))
===
0
){
unset
(
$fields
[
$key
]);
}
}
if
(
count
(
$fields
)
>
0
){
echo
implode
(
'<br>'
,
$fields
)
.
'<i class="br5"></i>'
;
}
include_partial
(
'main/open_profile_btn'
,
array
(
'id'
=>
$user
[
'id'
]));
apps/arm/modules/main/templates/error404Success.php
0 → 100644
View file @
9f4f2745
Prev
1
2
3
4
5
6
…
50
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment