| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/cgny/nympadmin/ |
Upload File : |
<cfparam name="url.mag" default="5"> <p> <cfquery name="getarticles" datasource="#ds#"> select distinct name,id,siteid from regions where siteid = #url.mag# order by siteid,name </cfquery> <table border="1" cellpadding="5"> <tr><td><strong>Article Category</strong> </td> <cfloop from="1" to="12" index="i"> <td> <cfoutput>#i# / 2018</cfoutput> </td> </cfloop> <cfset monthme = #dateformat(currentdatetime,'m')#> <cfloop from="1" to="#monthme#" index="i"> <td> <cfoutput>#i# / 2019</cfoutput> </td> </cfloop> </tr> <cfoutput query="getarticles"> <tr><td><a href="editorsreportarticle.cfm?postedby=#getarticles.id#&type=2">#name#</a> <Cfif #siteid# eq 1>CG</Cfif><cfif #siteid# eq 5>NYMP</cfif></td> <cfloop from="1" to="12" index="i"> <td> <Cfquery name="getcount3" datasource="#ds#"> select count(distinct(columntable.id)) as countid from columntable inner join regionstable on columntable.id = regionstable.colid where regionstable.regionsid =#getarticles.id# and month(dateposted) = #i# and year(dateposted) = 2018 and columntable.postedby <> '' </Cfquery> #getcount3.countid# </td> </cfloop> <cfloop from="1" to="#monthme#" index="i"> <td> <Cfquery name="getcount3" datasource="#ds#"> select count(distinct(columntable.id)) as countid from columntable inner join regionstable on columntable.id = regionstable.colid where regionstable.regionsid =#getarticles.id# and month(dateposted) = #i# and year(dateposted) = 2019 and columntable.postedby <> '' </Cfquery> #getcount3.countid# </td> </cfloop> </tr> </cfoutput> <Cfoutput> <tr><td>TOTAL</td> <cfloop from="1" to="12" index="i"> <td> <Cfquery name="getcount3" datasource="#ds#"> select count(distinct(columntable.id)) as countid from columntable where mag = 5 and month(dateposted) = #i# and year(dateposted) = 2018 and columntable.postedby <> '' </Cfquery> #getcount3.countid# </td> </cfloop> <cfloop from="1" to="#monthme#" index="i"> <td> <Cfquery name="getcount3" datasource="#ds#"> select count(distinct(columntable.id)) as countid from columntable where mag = 5 and month(dateposted) = #i# and year(dateposted) = 2019 and columntable.postedby <> '' </Cfquery> #getcount3.countid# </td> </cfloop> </tr> </cfoutput> </table>