Skip to content

Commit

Permalink
fixed buges
Browse files Browse the repository at this point in the history
  • Loading branch information
HadiWP committed Jun 16, 2024
1 parent b8513f7 commit ba4ab12
Show file tree
Hide file tree
Showing 3 changed files with 446 additions and 396 deletions.
213 changes: 213 additions & 0 deletions assets/css/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,213 @@
.gforms_form_settings select {
width: 180px !important;
}

.delete_this_condition, .add_new_condition {
text-decoration: none !important;
color: #000;
outline: none !important;
}

#gf_payping_conditional_container *, .delete_this_condition *, .add_new_condition * {
outline: none !important;
}

.condition_field_value {
width: 150px !important;
}

table.gforms_form_settings th {
font-weight: 600;
line-height: 1.3;
font-size: 14px;
}

.gf_payping_conditional_div {
margin: 3px;
}
.payping_graph_container {
clear: both;
padding-left: 5px;
min-width: 789px;
margin-right: 50px;
}

.payping_message_container {
clear: both;
padding-left: 5px;
text-align: center;
padding-top: 120px;
border: 1px solid #CCC;
background-color: #FFF;
width: 100%;
height: 200px;
}

.payping_summary_container {
margin: 30px 60px;
text-align: center;
min-width: 740px;
margin-left: 50px;
}

.payping_summary_item {
width: 180px;
height: 70px;
border-radius: 5px;
background-color: #FFF;
border: 1px solid #CCC;
padding: 14px 8px;
margin: 6px 3px 6px 0;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
text-align: center;
}

.payping_summary_value {
font-size: 20px;
margin: 5px 0;
}

.payping_summary_title {
height: 40px;
}

.tooltipbox_blue {
background: #0074A2;
padding: 5px 10px 5px 5px;
border-radius: 4px;
color: #fff;
}

.tooltipbox_green {
background: #50B432;
padding: 5px 10px 5px 5px;
border-radius: 4px;
color: #fff;
}

.tooltipbox_orang {
background: #EDC240;
padding: 5px 10px 5px 5px;
border-radius: 4px;
color: #fff;
}

.tooltipbox_red {
background: #AA4643;
padding: 5px 10px 5px 5px;
border-radius: 4px;
color: #fff;
}

.ui-datepicker-title select, .ui-datepicker-title option {
font-size: 11px !important;
}

.ui-datepicker th {
font-size: 12px !important;
}



/* admin feed page css */
.payping-gravityforms-title-bar {
display: flex;
background: #fff;
justify-content: center;
padding: 20px;
border-bottom: 1px solid #e2e2e2;
}
.payping-gravityforms-feed-page .gf_admin_page_title {
float: right;
}
.payping-gravityforms-feed-page #gf_form_toolbar_links {
margin: 0;
}
.payping-gravityforms-feed-page #gf_form_toolbar_links > li{
float: right;
margin-left: 15px;
position: relative;
height: 40px;
margin-bottom: 0;
padding: 10px;
line-height: 40px;
}
.payping-gravityforms-feed-page #gf_form_toolbar_links > li a {
color: #333;
text-decoration: none;
}
.payping-gravityforms-feed-page .gf_form_toolbar_settings .gform-form-toolbar__submenu {
visibility: hidden;
opacity: 0;
position: absolute;
width: 220px;
background: #fff;
padding: 10px 10px;
border: 1px solid #d5d7e9;
border-radius: 3px;
box-shadow: 0 10px 15px rgba(58, 61, 90, .1), 0 4px 6px rgba(58, 61, 90, .05);
box-sizing: border-box;
top: 60px;
}
.payping-gravityforms-feed-page .gf_form_toolbar_settings .gform-form-toolbar__submenu li a .gform-form-toolbar__icon {
font-size: 24px;
float: right;
line-height: 45px;
margin-left: 5px;
}
.payping-gravityforms-feed-page .gf_form_toolbar_settings .gform-form-toolbar__submenu .simplebar-placeholder {
display: none;
}
.payping-gravityforms-feed-page .gf_form_toolbar_settings:hover .gform-form-toolbar__submenu {
visibility: visible;
opacity: 1;
}
.payping-gravityforms-feed-page #gf_form_toolbar {
background: #fff;
display: flex;
box-shadow: 0 1px 4px rgba(58, 58, 87, .082), 0 1px 0 rgba(44, 44, 64, .063);
justify-content: center;
}
.payping-gravityforms-feed-page #gform_tab_group {
display: flex;
justify-content: center;
}
.payping-gravityforms-feed-page #gform_tab_group #gform_tabs {
width: 230px;
margin-left: 25px;
background-color: #fff;
padding: 10px 15px;
box-shadow: 0 1px 4px rgba(18, 25, 97, .078);
border: 1px solid #e3e6ef;
margin-top: 15px;
box-sizing: border-box;
}
.payping-gravityforms-feed-page #gform_tab_group #gform_tabs li {
padding: 5px 15px;
display: inline-block;
width: 100%;
box-sizing: border-box;
}
.payping-gravityforms-feed-page #gform_tab_group #gform_tabs li span {
float: right;
}
.payping-gravityforms-feed-page #gform_tab_group #gform_tabs li .gform-icon {
font-size: 24px;
margin-left: 5px;

}
.payping-gravityforms-feed-page #gform_tab_group #gform_tabs li a {
color: #333;
text-decoration: none;
}
.payping-gravityforms-feed-page #gform_tab_group .gform_tab_container {
max-width: 800px;
background-color: #fff;
padding: 10px 15px;
margin-top: 15px;
box-shadow: 0 1px 4px rgba(18, 25, 97, .078);
border: 1px solid #e3e6ef;
}
122 changes: 18 additions & 104 deletions chart.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,92 +15,6 @@ public static function stats_page() {
die( esc_html__( 'فرم درخواستی وجود ندارد.', 'payping-gravityforms' ) );
}
?>
<style type="text/css">
.payping_graph_container {
clear: both;
padding-left: 5px;
min-width: 789px;
margin-right: 50px;
}

.payping_message_container {
clear: both;
padding-left: 5px;
text-align: center;
padding-top: 120px;
border: 1px solid #CCC;
background-color: #FFF;
width: 100%;
height: 200px;
}

.payping_summary_container {
margin: 30px 60px;
text-align: center;
min-width: 740px;
margin-left: 50px;
}

.payping_summary_item {
width: 180px;
height: 70px;
border-radius: 5px;
background-color: #FFF;
border: 1px solid #CCC;
padding: 14px 8px;
margin: 6px 3px 6px 0;
display: -moz-inline-stack;
display: inline-block;
zoom: 1;
*display: inline;
text-align: center;
}

.payping_summary_value {
font-size: 20px;
margin: 5px 0;
}

.payping_summary_title {
height: 40px;
}

.tooltipbox_blue {
background: #0074A2;
padding: 5px 10px 5px 5px;
border-radius: 4px;
color: #fff;
}

.tooltipbox_green {
background: #50B432;
padding: 5px 10px 5px 5px;
border-radius: 4px;
color: #fff;
}

.tooltipbox_orang {
background: #EDC240;
padding: 5px 10px 5px 5px;
border-radius: 4px;
color: #fff;
}

.tooltipbox_red {
background: #AA4643;
padding: 5px 10px 5px 5px;
border-radius: 4px;
color: #fff;
}

.ui-datepicker-title select, .ui-datepicker-title option {
font-size: 11px !important;
}

.ui-datepicker th {
font-size: 12px !important;
}
</style>
<?php
//wp_dequeue_script( 'jquery-ui-datepicker' );
wp_dequeue_script( 'gform_datepicker_init' );
Expand All @@ -117,69 +31,69 @@ public static function stats_page() {
<div class="wrap">
<ul class="subsubsub">
<li><a class="<?php echo ( ! rgget( "tab" ) || rgget( "tab" ) == "today" ) ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>"><?php esc_html_e( "امروز", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>"><?php esc_html_e( "امروز", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "yesterday" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=yesterday"><?php esc_html_e( "دیروز", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=yesterday"><?php esc_html_e( "دیروز", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "last7days" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last7days"><?php esc_html_e( "هفت روز گذشته", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last7days"><?php esc_html_e( "هفت روز گذشته", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "thisweek" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=thisweek"><?php esc_html_e( "هفته جاری", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=thisweek"><?php esc_html_e( "هفته جاری", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "last30days" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last30days"><?php esc_html_e( "30 روز گذشته", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last30days"><?php esc_html_e( "30 روز گذشته", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "thismonth" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=thismonth"><?php esc_html_e( "ماه جاری", "payping-gravityforms" ); ?></a>|
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=thismonth"><?php esc_html_e( "ماه جاری", "payping-gravityforms" ); ?></a>|
</li>
<li><a class="<?php echo rgget( "tab" ) == "lastmonth" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=lastmonth"><?php esc_html_e( "ماه قبل", "payping-gravityforms" ); ?></a>|
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=lastmonth"><?php esc_html_e( "ماه قبل", "payping-gravityforms" ); ?></a>|
</li>
<li><a class="<?php echo rgget( "tab" ) == "last2month" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last2month"><?php esc_html_e( "2 ماه اخیر", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last2month"><?php esc_html_e( "2 ماه اخیر", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "last3month" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last3month"><?php esc_html_e( "3 ماه اخیر", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last3month"><?php esc_html_e( "3 ماه اخیر", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "last6month" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last6month"><?php esc_html_e( "6 ماه اخیر", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last6month"><?php esc_html_e( "6 ماه اخیر", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "last9month" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last9month"><?php esc_html_e( "9 ماه اخیر", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last9month"><?php esc_html_e( "9 ماه اخیر", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "last12month" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last12month"><?php esc_html_e( "یک سال اخیر", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=last12month"><?php esc_html_e( "یک سال اخیر", "payping-gravityforms" ); ?></a>
|
</li>
<li><a class="<?php echo rgget( "tab" ) == "spring" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=spring"><?php esc_html_e( "بهار", "payping-gravityforms" ); ?></a>|
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=spring"><?php esc_html_e( "بهار", "payping-gravityforms" ); ?></a>|
</li>
<li><a class="<?php echo rgget( "tab" ) == "summer" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=summer"><?php esc_html_e( "تابستان", "payping-gravityforms" ); ?></a>|
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=summer"><?php esc_html_e( "تابستان", "payping-gravityforms" ); ?></a>|
</li>
<li><a class="<?php echo rgget( "tab" ) == "fall" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=fall"><?php esc_html_e( "پاییز", "payping-gravityforms" ); ?></a>|
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=fall"><?php esc_html_e( "پاییز", "payping-gravityforms" ); ?></a>|
</li>
<li><a class="<?php echo rgget( "tab" ) == "winter" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=winter"><?php esc_html_e( "زمستان", "payping-gravityforms" ); ?></a>|
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=winter"><?php esc_html_e( "زمستان", "payping-gravityforms" ); ?></a>|
</li>
<li><a class="<?php echo rgget( "tab" ) == "thisyear" ? "current" : "" ?>"
href="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=thisyear"><?php esc_html_e( "امسال", "payping-gravityforms" ); ?></a>
href="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( 'id' )) ?>&tab=thisyear"><?php esc_html_e( "امسال", "payping-gravityforms" ); ?></a>
</li>
<br/><br/>
<form method="post"
action="?page=gf_payping&view=stats&id=<?php echo esc_attr(rgget( "id" )) ?>&tab=selection"><?php wp_nonce_field( "search", "gf_payping_chart" ) ?>
action="?page=gravityforms_payping&view=stats&id=<?php echo esc_attr(rgget( "id" )) ?>&tab=selection"><?php wp_nonce_field( "search", "gf_payping_chart" ) ?>
<span><?php esc_html_e( 'از تاریخ', 'payping-gravityforms' ) ?></span>
<input type="text" name="min" class="datepicker"
value="<?php echo esc_html(sanitize_text_field( rgpost( 'min' ) )); ?>" autocomplete="off"/>
Expand Down
Loading

0 comments on commit ba4ab12

Please sign in to comment.