Stories
Slash Boxes
Comments

Dev.SN ♥ developers

Log In

Log In

Create Account  |  Retrieve Password


Site News

Join our Folding@Home team:
Main F@H site
Our team page


Funding Goal
For 6-month period:
2020-01-01 to 2020-06-30
(All amounts are estimated)
Base Goal:
$3500.00

Currently:
$3500.00
100.0%
Stretch Goal:
$2000.00

Currently:
$1254.52
62.7%

Covers transactions:
2020-01-01 00:00:00 ..
2020-06-30 21:00:33 UTC
(SPIDs: [1207..1407])
Last Update:
2020-07-01 02:02:58 UTC
--martyb


Support us: Subscribe Here
and buy SoylentNews Swag


We always have a place for talented people, visit the Get Involved section on the wiki to see how you can make SoylentNews better.

Poll

Is this a good poll?

  • Yes
  • No
  • Maybe
  • So

[ Results | Polls ]
Comments:0 | Votes:2

Site Funding Progress

Funding Goal
For 6-month period:
2020-01-01 to 2020-06-30
(All amounts are estimated)
Base Goal:
$2000.00

Currently:
$126.74
6.4%

Covers transactions:
2020-01-01 00:00:00 ..
2020-01-31 06:46:05 UTC
(SPIDs: [1207..1216])
Last Update:
2020-01-31 12:48:47 UTC
--martyb

posted by martyb on Tuesday June 23, @10:00AM   Printer-friendly
from the go-for-it! dept.

Test story to put comments on (2020-06-23)


Original Submission

posted by martyb on Thursday April 09, @04:37PM   Printer-friendly

Loading the recent_subs page currently shows all subscriptions. Here is the template(default;admin;recent_subs) before making any changes.

NOTE: Slashcode converts tabs and runs of spaces into something like: "       "

[% PROCESS titlebar title="Recent Subscription Payments" %]
<div class="generalbody">
[% IF startat > 0;
    next_startat = startat - 30;
    IF next_startat < 0; next_startat = 0; END; %]
    <form action="[% gSkin.rootdir %]/admin.pl" method="get">
    <input type="hidden" name="op" value="recent_subs">
    <input type="hidden" name="startat" value="[% next_startat | strip_attribute %]">
    <input type="submit" value="<< Next Sub Payments">
    </form>
[% END %]

<table>
    <tr>
        <th>spid</th>
        <th>user</th>
        <th>email</th>
        <th>ts</th>
        <th>payment_net</th>
        <th>payment_gross</th>
        <th>pages</th>
        <th>trans_id</th>
        <th>method</th>
        <th>submethod</th>
    </tr>

    [% FOREACH sub = subs %]
    <tr>
        <td align="right">[% sub.spid %]</td>
        <td align="left"><a href="[% constants.real_rootdir
            %]/~[% sub.nickname | fixnickforlink | strip_paramattr %]">[%
            sub.nickname | strip_literal %] ([% sub.uid %])</a></td>
        <td align="left">[% sub.email | strip_literal %]</td>
        <td align="left">[% sub.ts | strip_literal %]</td>
        <td align="right" class="subs_net">[% sub.payment_net | strip_literal %]</td>
        <td align="right">[% sub.payment_gross | strip_literal %]</td>
        <td align="right">[% sub.pages | strip_literal %]</td>
        <td align="left">[% sub.transaction_id | strip_literal %]</td>
        <td align="left">[% sub.method | strip_literal %]</td>
        <td align="left">[% sub.submethod | strip_literal %]</td>
    </tr>
    [% END %]

</table>

[% prev_startat = startat + 30; %]
<form action="[% gSkin.rootdir %]/admin.pl" method="get">
<input type="hidden" name="op" value="recent_subs">
<input type="hidden" name="startat" value="[% prev_startat | strip_attribute %]">
<input type="submit" value="Prev Sub Payments >>">
</form>
</div>

link.


Original Submission

Partial solution:

    [% PROCESS titlebar title="Recent Subscription Payments" %]
    <div class="generalbody">
    [% IF startat > 0;
        next_startat = startat - 30;
        IF next_startat < 0; next_startat = 0; END; %]
        <form action="[% gSkin.rootdir %]/admin.pl" method="get">
        <input type="hidden" name="op" value="recent_subs">
        <input type="hidden" name="startat" value="[% next_startat | strip_attribute %]">
        <input type="submit" value="<< Next Sub Payments">
        </form>
    [% END %]

    <!-- We'll need a checkbox to toggle visibility: -->
    <input type="checkbox" id="show_grant" name="show_grant" value="checked">

   <!-- And styles for each column;  (should be moved into default.css) ->
   <!-- NB: the "align=" tag attribute is deprecated. -->
   <style type="text/css">
      .spid:      { align:   right; }
      .nick:      { align:   left;  }
      .email:     { align:   left;  }
      .ts:        { align:   left;  }
      .net:       { align:   right; }
      .gross:     { align:   right; }
      .pages:     { align:   right; }
      .transid:   { align:   left;  }
      .method:    { align:   left;  }
      .submethod: { align:   left;  }

      .paid:      { display: table-row; }
      .grant:     { display: none; }
      .grant:     { display: table-row; }

<!-- Need code in here, I think, to make use of  -->
<!-- checkbox value to set the  style for .grant -->

   </style>

    <table>
        <thead>
        <tr>
            <th>spid</th>
            <th>user</th>
            <th>email</th>
            <th>ts</th>
            <th>payment_net</th>
            <th>payment_gross</th>
            <th>pages</th>
            <th>trans_id</th>
            <th>method</th>
            <th>submethod</th>
        </tr>
        </thead>

        <tbody>
        [% FOREACH sub = subs %]

    [% gross_amount [% sub.payment_gross | strip_literal %];
        [% IF gross_amount > 0 subscribe_type = "paid"; ELSE; subscribe_type = "grant"; END;%]
        <tr class="[% subscribe_type %]">
            <td class="spid">[% sub.spid %]</td>
            <td class="nick"><a href="[% constants.real_rootdir
                %]/~[% sub.nickname | fixnickforlink | strip_paramattr %]">[%
                sub.nickname | strip_literal %] ([% sub.uid %])</a></td>
            <td class="email">[% sub.email | strip_literal %]</td>
            <td class="ts">[% sub.ts | strip_literal %]</td>
            <td class="net">[% sub.payment_net | strip_literal %]</td>
            <td class="gross">[% sub.payment_gross | strip_literal %]</td>
            <td class="pages">[% sub.pages | strip_literal %]</td>
            <td class="transid">[% sub.transaction_id | strip_literal %]</td>
            <td class="method">[% sub.method | strip_literal %]</td>
            <td class="submethod">[% sub.submethod | strip_literal %]</td>
        </tr>
        [% END %]
        </tbody>

    </table>

    [% prev_startat = startat + 30; %]
    <form action="[% gSkin.rootdir %]/admin.pl" method="get">
    <input type="hidden" name="op" value="recent_subs">
    <input type="hidden" name="startat" value="[% prev_startat | strip_attribute %]">
    <input type="submit" value="Prev Sub Payments >>">
    </form>
    </div>

posted by Fnord666 on Saturday April 04, @02:07PM   Printer-friendly

sample story 5

fasdfsfasfasfasfasdfasdf

sample story 6

asfasdfasfdsdfafdsf
asfasdfasd
fasdfasdfasdf
asfsadfas


Original Submission #1Original Submission #2

posted by Fnord666 on Saturday April 04, @01:46PM   Printer-friendly
from the teest-promotion dept.

This is a test.


Original Submission